diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-04-01 17:09:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-04-01 17:09:26 +0300 |
commit | 9ddf0c9d381bde2506d810dcfe55bd94f30b9737 (patch) | |
tree | 1efde21c9d69e1b6459f65401b45a8fe2d0dc1c1 /source | |
parent | e8c3c922481be4c468cc86b76f9554bd4504b22c (diff) |
Fix memory leak in armatures with no bones
The cleanup operation was never run for such armatures.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 4 |
1 files changed, 3 insertions, 1 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 9b266041cc1..152c8a168a7 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc @@ -337,7 +337,9 @@ void DepsgraphRelationBuilder::build_rig(Object *object) NodeType::PARAMETERS, OperationCode::ARMATURE_EVAL); add_relation(armature_key, pose_init_key, "Data dependency"); - /* IK Solvers. + /* Run cleanup even when there are no bones. */ + add_relation(pose_init_key, pose_cleanup_key, "Init -> Cleanup"); + /* IK Solvers. * * - These require separate processing steps are pose-level to be executed * between chains of bones (i.e. once the base transforms of a bunch of |