[Bf-blender-cvs] [9956cf8] depsgraph_refactor: Depsgraph: Temp solution for bone parent

Sergey Sharybin noreply at git.blender.org
Thu Nov 13 10:43:57 CET 2014


Commit: 9956cf8493738fa979eb9d85e45e6e2ffe4e55a5
Author: Sergey Sharybin
Date:   Wed Nov 12 16:40:11 2014 +0100
Branches: depsgraph_refactor
https://developer.blender.org/rB9956cf8493738fa979eb9d85e45e6e2ffe4e55a5

Depsgraph: Temp solution for bone parent

Now the secret agent walk cycle works fine, and quite enough of the
knowledge is gathered now.

Time to start going granular now!

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

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 363311a..4a7743e 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -296,8 +296,14 @@ void DepsgraphRelationBuilder::build_object_parent(Object *ob)
 			
 		case PARBONE: /* Bone Parent */
 		{
+#if 0
 			ComponentKey parent_key(&ob->parent->id, DEPSNODE_TYPE_BONE, ob->parsubstr);
 			add_relation(parent_key, ob_key, DEPSREL_TYPE_TRANSFORM, "Bone Parent");
+#else
+			/* TODO(sergey): For until bones has real update funciton. */
+			ComponentKey parent_key(&ob->parent->id, DEPSNODE_TYPE_TRANSFORM);
+			add_relation(parent_key, ob_key, DEPSREL_TYPE_TRANSFORM, "Bone Parent");
+#endif
 		}
 		break;
 			
@@ -408,7 +414,7 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id, eDepsNode
 					/* TODO(sergey): Bones evaluation currently happens in the uber data update node.. */
 					/* TODO(sergey): Once granularity is reached it sohuld be possible to get rid of this check. */
 					if (&ct->tar->id != id) {
-						ComponentKey target_key(&ct->tar->id, DEPSNODE_TYPE_GEOMETRY);
+						ComponentKey target_key(&ct->tar->id, DEPSNODE_TYPE_TRANSFORM);
 						add_relation(target_key, constraint_op_key, DEPSREL_TYPE_TRANSFORM, cti->name);
 					}
 #endif




More information about the Bf-blender-cvs mailing list