diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-06-14 16:29:56 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-06-14 16:29:56 +0400 |
commit | 0ed2e0e706de6aa322807602599528c207157666 (patch) | |
tree | 7b35867a073b5354c6f1648f07602b0ecd90f8a2 | |
parent | 5c941fb42e9be138a47b0ce7ff5848ae780a0ad2 (diff) |
== 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.
-rw-r--r-- | source/blender/src/editarmature.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index c7b818482bd..338147827da 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -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); } |