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:
Joshua Leung 2007-10-28 01:01:46 +00:00
parent 5315f368cd
commit 04be929b88

@ -964,10 +964,8 @@ static void copy_object_pose(Object *obn, Object *ob)
cti->get_constraint_targets(con, &targets);
for (ct= targets.first; ct; ct= ct->next) {
if (ct->tar == ob) {
if (ct->tar == ob)
ct->tar = obn;
strcpy(ct->subtarget, "");
}
}
if (cti->flush_constraint_targets)