Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-22 11:46:14 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-22 11:46:14 +0400
commitd435be750a06ca672d82192d88bb00f01b068c92 (patch)
tree23e3fd2876817494988f09a88eabd1ad19871d7f /source/blender/blenkernel
parent3289628610349784c0b068193da4275095b7a424 (diff)
Fix #31522: wrong ID user count on custom bone shape object after duplicate
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/object.c4
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};