diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-22 11:46:14 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-22 11:46:14 +0400 |
commit | d435be750a06ca672d82192d88bb00f01b068c92 (patch) | |
tree | 23e3fd2876817494988f09a88eabd1ad19871d7f /source | |
parent | 3289628610349784c0b068193da4275095b7a424 (diff) |
Fix #31522: wrong ID user count on custom bone shape object after duplicate
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 658a050d4d1..6f6881ce317 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1036,6 +1036,10 @@ static void copy_object_pose(Object *obn, Object *ob) chan->flag &= ~(POSE_LOC | POSE_ROT | POSE_SIZE); + if (chan->custom) { + id_us_plus(&chan->custom->id); + } + for (con = chan->constraints.first; con; con = con->next) { bConstraintTypeInfo *cti = constraint_get_typeinfo(con); ListBase targets = {NULL, NULL}; |