[Bf-blender-cvs] [3642b24] depsgraph_refactor: Depsgraph: Stub in a few more relations to ob transforms to go along with geometry when doing parenting

Joshua Leung noreply at git.blender.org
Tue Jan 13 03:40:28 CET 2015


Commit: 3642b2445eab79d2bd73ad74cb44c2c9a3262f23
Author: Joshua Leung
Date:   Tue Jan 13 14:10:25 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB3642b2445eab79d2bd73ad74cb44c2c9a3262f23

Depsgraph: Stub in a few more relations to ob transforms to go along with geometry when doing parenting

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

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 41a03ce..02a6b17 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -379,6 +379,9 @@ void DepsgraphRelationBuilder::build_object_parent(Object *ob)
 			add_relation(parent_key, ob_key, DEPSREL_TYPE_GEOMETRY_EVAL, "Vertex Parent");
 			/* XXX not sure what this is for or how you could be done properly - lukas */
 			//parent_node->customdata_mask |= CD_MASK_ORIGINDEX;
+			
+			ComponentKey transform_key(&ob->parent->id, DEPSNODE_TYPE_TRANSFORM);
+			add_relation(transform_key, ob_key, DEPSREL_TYPE_TRANSFORM, "Vertex Parent TFM");
 		}
 		break;
 			
@@ -407,8 +410,9 @@ void DepsgraphRelationBuilder::build_object_parent(Object *ob)
 					/* Follow Path */
 					ComponentKey parent_key(&ob->parent->id, DEPSNODE_TYPE_GEOMETRY);
 					add_relation(parent_key, ob_key, DEPSREL_TYPE_TRANSFORM, "Curve Follow Parent");
-					// XXX: link to geometry or object? both are needed?
-					// XXX: link to timesource too?
+					
+					ComponentKey transform_key(&ob->parent->id, DEPSNODE_TYPE_TRANSFORM);
+					add_relation(transform_key, ob_key, DEPSREL_TYPE_TRANSFORM, "Curve Follow TFM");
 				}
 				else {
 					/* Standard Parent */




More information about the Bf-blender-cvs mailing list