Commit: 4d9f830d7ac5f27e03f26f1477cf983cbd974235
Author: Sergey Sharybin
Date: Thu Feb 12 15:44:51 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB4d9f830d7ac5f27e03f26f1477cf983cbd974235
Depsgraph: Bone Local node is needed for proxy as well
This is because of drivers.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
M source/blender/depsgraph/intern/depsgraph_build_relations.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index baa5b83..83ba29c 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -666,6 +666,10 @@ void DepsgraphNodeBuilder::build_proxy_rig(Scene *scene,
Object *ob)
{
add_operation_node(&ob->id, DEPSNODE_TYPE_BONE, pchan->name,
DEPSOP_TYPE_INIT, NULL,
+ DEG_OPCODE_BONE_LOCAL);
+
+ add_operation_node(&ob->id, DEPSNODE_TYPE_BONE, pchan->name,
+ DEPSOP_TYPE_EXEC, NULL,
DEG_OPCODE_BONE_READY);
add_operation_node(&ob->id, DEPSNODE_TYPE_BONE, pchan->name,
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
index ed44766..ebf48d0 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -1304,9 +1304,11 @@ void DepsgraphRelationBuilder::build_proxy_rig(Scene
*scene, Object *ob)
pchan != NULL;
pchan = pchan->next)
{
+ OperationKey bone_local_key(&ob->id, DEPSNODE_TYPE_BONE,
pchan->name, DEG_OPCODE_BONE_LOCAL);
OperationKey bone_ready_key(&ob->id, DEPSNODE_TYPE_BONE,
pchan->name, DEG_OPCODE_BONE_READY);
OperationKey bone_done_key(&ob->id, DEPSNODE_TYPE_BONE,
pchan->name, DEG_OPCODE_BONE_DONE);
- add_relation(pose_init_key, bone_ready_key,
DEPSREL_TYPE_OPERATION, "Pose Init -> Bone Ready");
+ add_relation(pose_init_key, bone_local_key,
DEPSREL_TYPE_OPERATION, "Pose Init -> Bone Local");
+ add_relation(bone_local_key, bone_ready_key,
DEPSREL_TYPE_OPERATION, "Local -> Ready");
add_relation(bone_ready_key, bone_done_key,
DEPSREL_TYPE_OPERATION, "Ready -> Done");
add_relation(bone_done_key, pose_done_key,
DEPSREL_TYPE_OPERATION, "Bone Done -> Pose Done");
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs