Fix (unreported) memleak with legacy IKsolver.

Looks like new depsgraph may initialize some IK trees, without ever
executing them (which also frees them with legacy IKSolver code)...
This commit is contained in:
2018-10-02 17:59:11 +02:00
parent 9d104f57b6
commit 9c02f6b1ed
3 changed files with 28 additions and 2 deletions

View File

@@ -45,6 +45,8 @@ void iksolver_initialize_tree(
void iksolver_execute_tree(
struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob,
struct bPoseChannel *pchan_root, float ctime);
void iksolver_release_tree(struct Scene *scene, struct Object *ob, float ctime);
void iksolver_clear_data(struct bPose *pose);
#ifdef __cplusplus
}