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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-10-28 04:01:46 +0300
committerJoshua Leung <aligorith@gmail.com>2007-10-28 04:01:46 +0300
commit04be929b882a6df1bb2db011a067079dbef0570a (patch)
tree3ee98632b65c7894419832ea109e874aeab8f6a2 /source
parent5315f368cd44512e85f0678214de6280f1b31a09 (diff)
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)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/object.c4
1 files changed, 1 insertions, 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)