[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17146] trunk/blender/source/blender/src/ editarmature.c: Duplicating bones in EditMode didn' t set the custom-shape and bone-groups too.
Joshua Leung
aligorith at gmail.com
Tue Oct 21 10:53:39 CEST 2008
Revision: 17146
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17146
Author: aligorith
Date: 2008-10-21 10:53:39 +0200 (Tue, 21 Oct 2008)
Log Message:
-----------
Duplicating bones in EditMode didn't set the custom-shape and bone-groups too.
Modified Paths:
--------------
trunk/blender/source/blender/src/editarmature.c
Modified: trunk/blender/source/blender/src/editarmature.c
===================================================================
--- trunk/blender/source/blender/src/editarmature.c 2008-10-21 08:30:02 UTC (rev 17145)
+++ trunk/blender/source/blender/src/editarmature.c 2008-10-21 08:53:39 UTC (rev 17146)
@@ -2278,7 +2278,7 @@
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 @@
/* 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 @@
/* constraints */
listnew = &channew->constraints;
- copy_constraints (listnew, listold);
+ copy_constraints(listnew, listold);
+
+ /* custom shape */
+ channew->custom= chanold->custom;
}
}
}
More information about the Bf-blender-cvs
mailing list