[Bf-blender-cvs] [e042787] depsgraph_refactor: Depsgraph: Stub back reference to geometry results for lattice deform parenting type

Joshua Leung noreply at git.blender.org
Fri Jan 9 14:56:16 CET 2015


Commit: e04278721f28466c440b884ad154e2753a4fe349
Author: Joshua Leung
Date:   Sat Jan 10 02:29:35 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rBe04278721f28466c440b884ad154e2753a4fe349

Depsgraph: Stub back reference to geometry results for lattice deform parenting type

Strictly speaking, we really shouldn't still have any actual "virtual modifiers",
so this category should really be obsolete. But, adding it back in for now in
an attempt to figure out what's going wrong with koro's lattices (some points stick).

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

M	source/blender/depsgraph/intern/depsgraph_build_relations.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
index 10d9b70..d1c40de 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -393,8 +393,12 @@ void DepsgraphRelationBuilder::build_object_parent(Object *ob)
 		{
 			if (ob->parent->type == OB_LATTICE) {
 				/* Lattice Deform Parent - Virtual Modifier */
+				// XXX: no virtual modifiers should be left!
 				ComponentKey parent_key(&ob->parent->id, DEPSNODE_TYPE_TRANSFORM);
+				ComponentKey geom_key(&ob->parent->id, DEPSNODE_TYPE_GEOMETRY);
+				
 				add_relation(parent_key, ob_key, DEPSREL_TYPE_STANDARD, "Lattice Deform Parent");
+				add_relation(geom_key, ob_key, DEPSREL_TYPE_STANDARD, "Lattice Deform Parent Geom");
 			}
 			else if (ob->parent->type == OB_CURVE) {
 				Curve *cu = (Curve *)ob->parent->data;




More information about the Bf-blender-cvs mailing list