Bugfix #7674: Making proxy from linked armature ruins local armature
This was caused by an error I made when converting old code during the constraints recode 2. As a result, constraint subtargets got cleared, messing up proxies. (set_constraint_target didn't use to clear the subtarget of a constraint when passed NULL for the subtarget argument)
This commit is contained in:
@@ -964,10 +964,8 @@ static void copy_object_pose(Object *obn, Object *ob)
|
|||||||
cti->get_constraint_targets(con, &targets);
|
cti->get_constraint_targets(con, &targets);
|
||||||
|
|
||||||
for (ct= targets.first; ct; ct= ct->next) {
|
for (ct= targets.first; ct; ct= ct->next) {
|
||||||
if (ct->tar == ob) {
|
if (ct->tar == ob)
|
||||||
ct->tar = obn;
|
ct->tar = obn;
|
||||||
strcpy(ct->subtarget, "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cti->flush_constraint_targets)
|
if (cti->flush_constraint_targets)
|
||||||
|
|||||||
Reference in New Issue
Block a user