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.
This commit is contained in:
Brecht Van Lommel
2013-08-07 15:23:09 +00:00
parent 8d879829da
commit 438b50022e

View File

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