Commit: c0ee2319846b91803a9794122b36bc5980ede442
Author: Sergey Sharybin
Date: Wed Nov 12 15:32:03 2014 +0100
Branches: depsgraph_refactor
https://developer.blender.org/rBc0ee2319846b91803a9794122b36bc5980ede442
Depsgraph: Workaround for bone constraint targets
===================================================================
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 3b75f93..4babe4d 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -401,8 +401,14 @@ void DepsgraphRelationBuilder::build_constraints(Scene
*scene, ID *id, eDepsNode
}
else if ((ct->tar->type == OB_ARMATURE) &&
(ct->subtarget[0])) {
/* bone */
+#if 0
ComponentKey target_key(&ct->tar->id,
DEPSNODE_TYPE_BONE, ct->subtarget);
add_relation(target_key,
constraint_op_key, DEPSREL_TYPE_TRANSFORM, cti->name);
+#else
+ /* TODO(sergey): Bones evaluation
currently happens in the uber data update node.. */
+ ComponentKey target_key(&ct->tar->id,
DEPSNODE_TYPE_GEOMETRY);
+ add_relation(target_key,
constraint_op_key, DEPSREL_TYPE_TRANSFORM, cti->name);
+#endif
}
else if (ELEM(ct->tar->type, OB_MESH,
OB_LATTICE) && (ct->subtarget[0])) {
/* vertex group */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs