diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-28 01:07:28 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-28 01:07:28 +0300 |
commit | 8fb9ef7a1d53c13abdf5e2a920a73b3830757a4c (patch) | |
tree | d0f8ee712cb8c2359f129404e22c24a82ff6b78a /source/blender | |
parent | 90bc4c1f833326d4d17bdd5f251076e23346712c (diff) |
Bugfix #3467
Option "Paste flipped pose" didn't work proper for auto-key (inserted key in
own bone instead of flipped...)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/poseobject.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c index 077d6f520b4..5a2276736b6 100644 --- a/source/blender/src/poseobject.c +++ b/source/blender/src/poseobject.c @@ -525,17 +525,18 @@ void paste_posebuf (int flip) if (G.flags & G_RECORDKEYS){ ID *id= &ob->id; + /* Set keys on pose */ if (chan->flag & POSE_ROT){ - insertkey(id, ID_PO, chan->name, NULL, AC_QUAT_X); - insertkey(id, ID_PO, chan->name, NULL, AC_QUAT_Y); - insertkey(id, ID_PO, chan->name, NULL, AC_QUAT_Z); - insertkey(id, ID_PO, chan->name, NULL, AC_QUAT_W); + insertkey(id, ID_PO, pchan->name, NULL, AC_QUAT_X); + insertkey(id, ID_PO, pchan->name, NULL, AC_QUAT_Y); + insertkey(id, ID_PO, pchan->name, NULL, AC_QUAT_Z); + insertkey(id, ID_PO, pchan->name, NULL, AC_QUAT_W); } if (chan->flag & POSE_SIZE){ - insertkey(id, ID_PO, chan->name, NULL, AC_SIZE_X); - insertkey(id, ID_PO, chan->name, NULL, AC_SIZE_Y); - insertkey(id, ID_PO, chan->name, NULL, AC_SIZE_Z); + insertkey(id, ID_PO, pchan->name, NULL, AC_SIZE_X); + insertkey(id, ID_PO, pchan->name, NULL, AC_SIZE_Y); + insertkey(id, ID_PO, pchan->name, NULL, AC_SIZE_Z); } if (chan->flag & POSE_LOC){ insertkey(id, ID_PO, pchan->name, NULL, AC_LOC_X); |