[Bf-blender-cvs] [0f8228a890c] master: Depsgraph: Add parameters nodes for bone custom properties
Sergey Sharybin
noreply at git.blender.org
Mon Dec 4 15:10:17 CET 2017
Commit: 0f8228a890c3b0906d88e34ac75d0246a65dfe55
Author: Sergey Sharybin
Date: Mon Dec 4 14:50:14 2017 +0100
Branches: master
https://developer.blender.org/rB0f8228a890c3b0906d88e34ac75d0246a65dfe55
Depsgraph: Add parameters nodes for bone custom properties
Currently shouldn't make any difference, but this is something what needs to be
done to sanitize drivers relations )with the idea to re-use some generic code
to get operations for driver variables.
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc
index caf6f60165c..19533272ef5 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc
@@ -196,7 +196,7 @@ void DepsgraphNodeBuilder::build_rig(Object *object)
/* bones */
LINKLIST_FOREACH (bPoseChannel *, pchan, &object->pose->chanbase) {
- /* node for bone eval */
+ /* Node for bone evaluation. */
op_node = add_operation_node(&object->id, DEG_NODE_TYPE_BONE, pchan->name, NULL,
DEG_OPCODE_BONE_LOCAL);
op_node->set_as_entry();
@@ -213,14 +213,20 @@ void DepsgraphNodeBuilder::build_rig(Object *object)
function_bind(BKE_pose_bone_done, _1, pchan),
DEG_OPCODE_BONE_DONE);
op_node->set_as_exit();
-
- /* constraints */
+ /* Custom properties. */
+ if (pchan->prop != NULL) {
+ add_operation_node(&object->id,
+ DEG_NODE_TYPE_PARAMETERS,
+ NULL,
+ DEG_OPCODE_PARAMETERS_EVAL,
+ pchan->name);
+ }
+ /* Constraints. */
if (pchan->constraints.first != NULL) {
build_pose_constraints(object, pchan);
}
-
/**
- * IK Solvers...
+ * IK Solvers.
*
* - These require separate processing steps are pose-level
* to be executed between chains of bones (i.e. once the
More information about the Bf-blender-cvs
mailing list