Made the outliner use leftmouse (as it is right now for default
authorMatt Ebb <matt@mke3.net>
Thu, 7 Oct 2004 03:04:20 +0000 (03:04 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 7 Oct 2004 03:04:20 +0000 (03:04 +0000)
rightmouse select) for activating, expanding the tree, etc
regardless of the mouse button selection user pref.

source/blender/src/space.c

index 82b4279718c0fa4190855cdcf139bc8dde4d011e..4a4fc17e757dd225cb37517bf762cdb52e6aaca8 100644 (file)
@@ -3787,19 +3787,11 @@ static void winqreadoopsspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
 
        if( uiDoBlocks(&curarea->uiblocks, event)!=UI_NOTHING ) event= 0;
 
-       /* swap mouse buttons based on user preference */
-       if (U.flag & USER_LMOUSESELECT) {
-               if (evt->event == LEFTMOUSE) {
-                       event = RIGHTMOUSE;
-               } else if (evt->event == RIGHTMOUSE) {
-                       event = LEFTMOUSE;
-               }
-       }
-
        if (U.flag & USER_NONUMPAD) {
                event= convert_for_nonumpad(event);
        }
        
+       /* keep leftmouse select for outliner, regardless of user pref */ 
        if(soops->type==SO_OUTLINER) {
                switch(event) {
                case LEFTMOUSE:
@@ -3825,7 +3817,16 @@ static void winqreadoopsspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                        break;
                }
        }
-       else {
+       else {  
+               /* swap mouse buttons based on user preference */
+               if (U.flag & USER_LMOUSESELECT) {
+                       if (evt->event == LEFTMOUSE) {
+                               event = RIGHTMOUSE;
+                       } else if (evt->event == RIGHTMOUSE) {
+                               event = LEFTMOUSE;
+                       }
+               }
+       
                switch(event) {
                case LEFTMOUSE:
                        gesture();