PoseLib - swapping keys:
authorJoshua Leung <aligorith@gmail.com>
Sat, 16 Feb 2008 04:12:54 +0000 (04:12 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 16 Feb 2008 04:12:54 +0000 (04:12 +0000)
Swapped the order of a few keys during PoseLib Preview, so that they made more sense.

source/blender/src/poselib.c

index 351ba93fa5947453b9bc8a3eb8f3f7cfd796de24..cf843edc6eb22d4d3ab6818a41c04664128976aa 100644 (file)
@@ -987,7 +987,7 @@ static void poselib_preview_handle_event (tPoseLib_PreviewData *pld, unsigned sh
                        pld->redraw= PL_PREVIEW_REDRAWALL;
                        break;
                
-               /* change to previous pose or searching cursor control */
+               /* change to next pose or searching cursor control */
                case RIGHTARROWKEY:
                        if (pld->searchstr[0]) {
                                /* move text-cursor to the right */
@@ -996,8 +996,8 @@ static void poselib_preview_handle_event (tPoseLib_PreviewData *pld, unsigned sh
                                pld->redraw= PL_PREVIEW_REDRAWHEADER;
                        }
                        else {
-                               /* change to previous pose (cyclic) */
-                               poselib_preview_get_next(pld, -1);
+                               /* change to next pose (cyclic) */
+                               poselib_preview_get_next(pld, 1);
                                pld->redraw= PL_PREVIEW_REDRAWALL;
                        }
                        break;
@@ -1011,8 +1011,8 @@ static void poselib_preview_handle_event (tPoseLib_PreviewData *pld, unsigned sh
                                pld->redraw= PL_PREVIEW_REDRAWHEADER;
                        }
                        else {
-                               /* change to next pose (cyclic) */
-                               poselib_preview_get_next(pld, 1);
+                               /* change to previous pose (cyclic) */
+                               poselib_preview_get_next(pld, -1);
                                pld->redraw= PL_PREVIEW_REDRAWALL;
                        }
                        break;