[Bf-blender-cvs] [c0b9a4a86ef] blender2.8: Depsgraph: Add missing relation for spline IK

Sergey Sharybin noreply at git.blender.org
Wed Sep 26 18:16:59 CEST 2018


Commit: c0b9a4a86ef7dfc42cb7542cea6ab5ba472f5884
Author: Sergey Sharybin
Date:   Wed Sep 26 18:16:16 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc0b9a4a86ef7dfc42cb7542cea6ab5ba472f5884

Depsgraph: Add missing relation for spline IK

Solver should clearly depend on initializaiton.

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

M	source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
index da063b35139..c57962a8ed1 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
@@ -240,8 +240,12 @@ void DepsgraphRelationBuilder::build_splineik_pose(Object *object,
 	bSplineIKConstraint *data = (bSplineIKConstraint *)con->data;
 	bPoseChannel *rootchan = BKE_armature_splineik_solver_find_root(pchan, data);
 	OperationKey transforms_key(&object->id, DEG_NODE_TYPE_BONE, pchan->name, DEG_OPCODE_BONE_READY);
+	OperationKey init_ik_key(&object->id, DEG_NODE_TYPE_EVAL_POSE, DEG_OPCODE_POSE_INIT_IK);
 	OperationKey solver_key(&object->id, DEG_NODE_TYPE_EVAL_POSE, rootchan->name, DEG_OPCODE_POSE_SPLINE_IK_SOLVER);
 
+	/* Solver depends on initialization. */
+	add_relation(init_ik_key, solver_key, "Init IK -> IK Solver");
+
 	/* attach owner to IK Solver too
 	 * - assume that owner is always part of chain
 	 * - see notes on direction of rel below...



More information about the Bf-blender-cvs mailing list