[Bf-blender-cvs] [21db9ff] master: Fix T45238: New depsgraph flickers with the lattice modifier

Sergey Sharybin noreply at git.blender.org
Tue Jun 30 18:00:54 CEST 2015


Commit: 21db9fff125410d05f17a6663c0e8be583b5f98f
Author: Sergey Sharybin
Date:   Tue Jun 30 18:00:24 2015 +0200
Branches: master
https://developer.blender.org/rB21db9fff125410d05f17a6663c0e8be583b5f98f

Fix T45238: New depsgraph flickers with the lattice modifier

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

M	source/blender/modifiers/intern/MOD_lattice.c

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

diff --git a/source/blender/modifiers/intern/MOD_lattice.c b/source/blender/modifiers/intern/MOD_lattice.c
index b8975be..52a4f44 100644
--- a/source/blender/modifiers/intern/MOD_lattice.c
+++ b/source/blender/modifiers/intern/MOD_lattice.c
@@ -110,13 +110,15 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
 static void updateDepsgraph(ModifierData *md,
                             struct Main *UNUSED(bmain),
                             struct Scene *UNUSED(scene),
-                            Object *UNUSED(ob),
+                            Object *object,
                             struct DepsNodeHandle *node)
 {
 	LatticeModifierData *lmd = (LatticeModifierData *)md;
 	if (lmd->object != NULL) {
 		DEG_add_object_relation(node, lmd->object, DEG_OB_COMP_GEOMETRY, "Lattice Modifier");
+		DEG_add_object_relation(node, lmd->object, DEG_OB_COMP_TRANSFORM, "Lattice Modifier");
 	}
+	DEG_add_object_relation(node, object, DEG_OB_COMP_TRANSFORM, "Lattice Modifier");
 }
 
 static void deformVerts(ModifierData *md, Object *ob,




More information about the Bf-blender-cvs mailing list