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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-10-21 12:53:39 +0400
committerJoshua Leung <aligorith@gmail.com>2008-10-21 12:53:39 +0400
commitf99c02a06b8ee8e43b6811f27591993e91e1557a (patch)
tree3394c48b904df5cb6292c3bfeb115474fb2ed3ea /source/blender
parenta7d7acf60178ed845aad86b4e12e2b78aec5bc6d (diff)
Duplicating bones in EditMode didn't set the custom-shape and bone-groups too.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/src/editarmature.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c
index 18f4bc3f8dd..0b8c1339dae 100644
--- a/source/blender/src/editarmature.c
+++ b/source/blender/src/editarmature.c
@@ -2278,7 +2278,7 @@ void adduplicate_armature(void)
bPoseChannel *chanold, *channew;
ListBase *listold, *listnew;
- chanold = verify_pose_channel (OBACT->pose, curBone->name);
+ chanold = verify_pose_channel(OBACT->pose, curBone->name);
if (chanold) {
listold = &chanold->constraints;
if (listold) {
@@ -2291,6 +2291,9 @@ void adduplicate_armature(void)
/* copy transform locks */
channew->protectflag = chanold->protectflag;
+ /* copy bone group */
+ channew->agrp_index= chanold->agrp_index;
+
/* ik (dof) settings */
channew->ikflag = chanold->ikflag;
VECCOPY(channew->limitmin, chanold->limitmin);
@@ -2300,7 +2303,10 @@ void adduplicate_armature(void)
/* constraints */
listnew = &channew->constraints;
- copy_constraints (listnew, listold);
+ copy_constraints(listnew, listold);
+
+ /* custom shape */
+ channew->custom= chanold->custom;
}
}
}