Fix T57368: Multi-Object-Mode: Edit Lattice draws only active
authorDalai Felinto <dfelinto@gmail.com>
Fri, 26 Oct 2018 16:11:07 +0000 (13:11 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 26 Oct 2018 16:11:07 +0000 (13:11 -0300)
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.

source/blender/draw/modes/object_mode.c

index 12881034052d3d8929fb4f44f6c333516d3f03b6..1b20e32a770f88a6913201d587fd32ec4523693f 100644 (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;
                                }