Bugfix #3467
authorTon Roosendaal <ton@blender.org>
Sun, 27 Nov 2005 22:07:28 +0000 (22:07 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 27 Nov 2005 22:07:28 +0000 (22:07 +0000)
Option "Paste flipped pose" didn't work proper for auto-key (inserted key in
own bone instead of flipped...)

source/blender/src/poseobject.c

index 077d6f520b4eb8c4b6af50eb902f6d55b0cf67e8..5a2276736b6db67517a964b59624937fa4144cdd 100644 (file)
@@ -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);