diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-04 09:52:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-04 09:52:14 +0400 |
commit | ea5b43d862a4004280660405d50560d576f6fed9 (patch) | |
tree | 00c3419ef8a7f3af173b18ce5a4729fb3693e910 /source/blender/blenkernel/intern | |
parent | b5c2598a6b31f63ee6d52c61d6ab5195a576ec56 (diff) |
fix [#26920] working with bones causes segmetation fault.
ITASC IK solver data wasn't being cleared when constraints were removed, would access freed memory and crash.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index d2e48edc7ce..d3c14a9dd12 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -4019,7 +4019,9 @@ bConstraintTypeInfo *constraint_get_typeinfo (bConstraint *con) /* ---------- Data Management ------- */ -/* Free data of a specific constraint if it has any info */ +/* Free data of a specific constraint if it has any info. + * be sure to run BIK_clear_data() when freeing an IK constraint, + * unless DAG_scene_sort is called. */ void free_constraint_data (bConstraint *con) { if (con->data) { |