From c0b9a4a86ef7dfc42cb7542cea6ab5ba472f5884 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 26 Sep 2018 18:16:16 +0200 Subject: Depsgraph: Add missing relation for spline IK Solver should clearly depend on initializaiton. --- source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender') 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... -- cgit v1.2.3