From 04be929b882a6df1bb2db011a067079dbef0570a Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 28 Oct 2007 01:01:46 +0000 Subject: [PATCH] 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) --- source/blender/blenkernel/intern/object.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index f016e4e47a0..a364c108c38 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -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)