== 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.
This commit is contained in:
Joshua Leung 2007-06-14 12:29:56 +00:00
parent 5c941fb42e
commit 0ed2e0e706

@ -1629,6 +1629,17 @@ void adduplicate_armature(void)
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);
}