diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-12 17:52:13 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-12 17:52:13 +0400 |
commit | 3497b2241e793764c2d57f7b26984957f2300d60 (patch) | |
tree | cff657183ce7fec560c361e05935f8fe435926db /source/blender/editors/armature/pose_edit.c | |
parent | 004fa8e72973efab77a849fbd44bc46079b7e7aa (diff) |
Followup for r58992, fixing user decrement error
Some places like proxy rebuild didn't increent
custom shape user counter which lead to user
decrement errors later when freeing pose channels.
Try to keep custom object counter relevent, but
some corner cases might still be missing.
Diffstat (limited to 'source/blender/editors/armature/pose_edit.c')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index 40b96132699..e84008c3d15 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -487,6 +487,9 @@ static void pose_copy_menu(Scene *scene) break; case 8: /* Custom Bone Shape */ pchan->custom = pchanact->custom; + if (pchan->custom) { + id_us_plus(&pchan->custom->id); + } break; case 9: /* Visual Location */ BKE_armature_loc_pose_to_bone(pchan, pchanact->pose_mat[3], pchan->loc); |