Fix T57368: Multi-Object-Mode: Edit Lattice draws only active

As it turned out the issue wasn't that we were drawing only the active,
but that the "object mode" lattice drawing was drawing on top of the
drawing for all the edit mode lattice objects.

We are doing the same original behaviour for curves and even meshes. To be
investigated if it is ok for those other cases.
This commit is contained in:
Dalai Felinto
2018-10-26 13:11:07 -03:00
parent 1cc7d71a0b
commit a2dc4d2532

View File

@@ -2697,7 +2697,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
break;
case OB_LATTICE:
{
if (ob != draw_ctx->object_edit) {
if (ob != draw_ctx->object_edit && !BKE_object_is_in_editmode(ob)) {
if (hide_object_extra) {
break;
}