diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-04-13 17:36:57 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-04-13 17:36:57 +0300 |
commit | 3d8790faf17b665eecf10868939ce9fb9c794ddd (patch) | |
tree | eed541bf61e25a2d4e5e49a98f06920a84468b56 /source/blender/depsgraph | |
parent | 51c8a6f491d3b21a6c91af6267f58d4f0add58af (diff) |
Fix T62048: crash when turning off curve path animation with Spline IK.
Both fix missing depsgraph flag, and gracefully give up on missing data.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 1 |
1 files changed, 1 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 35652ebb53e..c9f86652262 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc @@ -262,6 +262,7 @@ void DepsgraphRelationBuilder::build_splineik_pose(Object *object, if (data->tar != NULL) { ComponentKey target_key(&data->tar->id, NodeType::GEOMETRY); add_relation(target_key, init_ik_key, "Curve.Path -> Spline IK"); + add_special_eval_flag(&data->tar->id, DAG_EVAL_NEED_CURVE_PATH); } pchan->flag |= POSE_DONE; OperationKey final_transforms_key( |