From 438b50022e6693e397f82ed2f565b3231413276f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 7 Aug 2013 15:23:09 +0000 Subject: Fix #36391: removing an armature with a custom bone shape object would not decrement the object user count when removing the armature. This could cause the object to stick when it shouldn't, in particular when that object is part of a group. --- source/blender/blenkernel/intern/action.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenkernel/intern/action.c') diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 70fbf2d39e8..80e40efd1fb 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -616,6 +616,10 @@ void BKE_pose_channels_hash_free(bPose *pose) void BKE_pose_channel_free(bPoseChannel *pchan) { + if (pchan->custom) { + id_us_min(&pchan->custom->id); + pchan->custom = NULL; + } if (pchan->mpath) { animviz_free_motionpath(pchan->mpath); -- cgit v1.2.3