[Bf-blender-cvs] [a2dc4d25329] blender2.8: Fix T57368: Multi-Object-Mode: Edit Lattice draws only active

Dalai Felinto noreply at git.blender.org
Fri Oct 26 19:10:11 CEST 2018


Commit: a2dc4d253293fd79d29d22222554b6ad35d9a790
Author: Dalai Felinto
Date:   Fri Oct 26 13:11:07 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBa2dc4d253293fd79d29d22222554b6ad35d9a790

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.

===================================================================

M	source/blender/draw/modes/object_mode.c

===================================================================

diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index 12881034052..1b20e32a770 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -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;
 				}



More information about the Bf-blender-cvs mailing list