diff options
author | Matt Ebb <matt@mke3.net> | 2004-07-16 05:34:19 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-07-16 05:34:19 +0400 |
commit | 688a6de8789989522d1faf61349fc864b962137e (patch) | |
tree | 79f005679d1ab69037c520e5ef7cd9973e660be4 /source/blender/src/editface.c | |
parent | e926d392a8dbfc06bbd1670ce11a750ce15a1170 (diff) |
* User preference to select with the left mouse button
instead of right.
This basically swaps left and right, in most window spaces
so you can choose between:
LMB: Cursor/time slider/paint - RMB: Select
or LMB: Select - RMB: Cursor/time slider/paint
Aimed at:
1. Newbies
2. 1 button mouse mac users
3. People like me who are sick of having to constantly keep putting their brains into different modes when
switching between other apps and Blender :)
Yes, the User Preferences window is a bit of a nightmare
now, a layout cleanup will be forthcoming soon...
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r-- | source/blender/src/editface.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c index 7f979188ea4..56bdf4f6d75 100644 --- a/source/blender/src/editface.c +++ b/source/blender/src/editface.c @@ -58,6 +58,7 @@ #include "DNA_space_types.h" #include "DNA_screen_types.h" #include "DNA_view3d_types.h" +#include "DNA_userdef_types.h" #include "BKE_utildefines.h" #include "BKE_displist.h" @@ -1410,6 +1411,7 @@ void face_draw() char *warn_packed_file = 0; float uv[2], uv_old[2]; extern VPaint Gvp; + short mousebut; ob = OBACT; if (!ob) { @@ -1428,10 +1430,13 @@ void face_draw() error("Can't create brush"); return; } + if (U.flag & USER_LMOUSESELECT) mousebut = R_MOUSE; + else mousebut = L_MOUSE; + persp(PERSP_VIEW); getmouseco_areawin(xy_old); - while (get_mbut() & L_MOUSE) { + while (get_mbut() & mousebut) { getmouseco_areawin(xy); /* Check if cursor has moved */ if ((xy[0] != xy_old[0]) || (xy[1] != xy_old[1])) { |