diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-26 19:16:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-26 19:16:55 +0300 |
commit | c0b9a4a86ef7dfc42cb7542cea6ab5ba472f5884 (patch) | |
tree | 48048f547af96855c9c1a9cbe1399f71b63a19f6 /source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | |
parent | 0666ece2e2f96571200d693d9d7bee1ca72d026f (diff) |
Depsgraph: Add missing relation for spline IK
Solver should clearly depend on initializaiton.
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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... |