Fix memory leak in armatures with no bones

The cleanup operation was never run for such armatures.
This commit is contained in:
2019-04-01 16:09:26 +02:00
parent e8c3c92248
commit 9ddf0c9d38

View File

@@ -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