Fix #31522: wrong ID user count on custom bone shape object after duplicate

This commit is contained in:
Sergey Sharybin 2012-05-22 07:46:14 +00:00
parent 3289628610
commit d435be750a

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