[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10923] trunk/blender/source/blender/src/ editarmature.c: == Armature - Duplicating Bones ==
Joshua Leung
aligorith at gmail.com
Thu Jun 14 14:29:56 CEST 2007
Revision: 10923
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10923
Author: aligorith
Date: 2007-06-14 14:29:56 +0200 (Thu, 14 Jun 2007)
Log Message:
-----------
== Armature - Duplicating Bones ==
Duplicating bones now also duplicates the Transform Locks, and IK DOF settings, along with constraints.
I have noticed a few random crashes while editing armatures recently, that seem to occur after duplicating a chain of bones. I've yet to find the cause though.
Modified Paths:
--------------
trunk/blender/source/blender/src/editarmature.c
Modified: trunk/blender/source/blender/src/editarmature.c
===================================================================
--- trunk/blender/source/blender/src/editarmature.c 2007-06-13 23:17:28 UTC (rev 10922)
+++ trunk/blender/source/blender/src/editarmature.c 2007-06-14 12:29:56 UTC (rev 10923)
@@ -1629,6 +1629,17 @@
channew =
verify_pose_channel(OBACT->pose, eBone->name);
if (channew) {
+ /* copy transform locks */
+ channew->protectflag = chanold->protectflag;
+
+ /* ik (dof) settings */
+ channew->ikflag = chanold->ikflag;
+ VECCOPY(channew->limitmin, chanold->limitmin);
+ VECCOPY(channew->limitmax, chanold->limitmax);
+ VECCOPY(channew->stiffness, chanold->stiffness);
+ channew->ikstretch= chanold->ikstretch;
+
+ /* constraints */
listnew = &channew->constraints;
copy_constraints (listnew, listold);
}
More information about the Bf-blender-cvs
mailing list