diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2004-03-10 01:00:51 +0300 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2004-03-10 01:00:51 +0300 |
commit | 0ab4e6e503fb3d72dfb680c728ef9e3b6937364c (patch) | |
tree | c670e5feb477bcbe13add5b229317dba6b987c7d /source | |
parent | 3081f4a6355b495f167151fb269dd16fa4f9f24e (diff) |
Added Activator Code for a Loop select rotation
Rotation Current;y goes like this in editmode...
alt-b : vertex loop select
alt-b : face loop select
alt-b : off
I also removed the console output for changing to small cursor.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/cursors.c | 4 | ||||
-rw-r--r-- | source/blender/src/editmesh.c | 14 | ||||
-rw-r--r-- | source/blender/src/space.c | 8 |
3 files changed, 22 insertions, 4 deletions
diff --git a/source/blender/src/cursors.c b/source/blender/src/cursors.c index 1991f54c881..bc720b28961 100644 --- a/source/blender/src/cursors.c +++ b/source/blender/src/cursors.c @@ -110,7 +110,7 @@ void SetBlenderCursor(short curs){ set_cursor(CURSOR_STD); } else if ( (U.curssize==0) || (BlenderCursor[curs]->big_bm == NULL) ) { - printf("setting small cursor\n"); + /*printf("setting small cursor\n");*/ GHOST_SetCustomCursorShapeEx(win->ghostwin, BlenderCursor[curs]->small_bm, BlenderCursor[curs]->small_mask, BlenderCursor[curs]->small_sizex,BlenderCursor[curs]->small_sizey, @@ -119,7 +119,7 @@ void SetBlenderCursor(short curs){ ); } else { - printf("setting big cursor\n"); + /*printf("setting big cursor\n");*/ GHOST_SetCustomCursorShapeEx(win->ghostwin, BlenderCursor[curs]->big_bm, BlenderCursor[curs]->big_mask, BlenderCursor[curs]->big_sizex,BlenderCursor[curs]->big_sizey, diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index aad79f7909f..a666e3275a2 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -2242,7 +2242,9 @@ void loopoperations(char mode) if(mode==LOOP_CUT)undo_push_mesh("Faceloop Subdivide"); else if(mode==LOOP_SELECT)undo_push_mesh("Faceloop Select"); - + + SetBlenderCursor(BC_VLOOPCURSOR); + start=NULL; oldstart=NULL; @@ -2636,7 +2638,7 @@ void loopoperations(char mode) event= extern_qread(&val); /* extern_qread stores important events for the mainloop to handle */ /* val==0 on key-release event */ - if(val && (event==ESCKEY || event==RIGHTMOUSE || event==LEFTMOUSE || event==RETKEY || event == MIDDLEMOUSE)){ + if(val && (event==ESCKEY || event==RIGHTMOUSE || event==LEFTMOUSE || event==RETKEY || event == MIDDLEMOUSE || event == BKEY)){ searching=0; } } @@ -3058,6 +3060,7 @@ void loopoperations(char mode) free(percentfacesloop); /* send event to redraw this window, does header too */ + SetBlenderCursor(SYSCURSOR); addqueue(curarea->win, REDRAW, 1); } @@ -9398,6 +9401,13 @@ void vertex_loop_select() cancel = 1; break; } + if(val && (event==BKEY && G.qual==LR_ALTKEY )) + { + + SetBlenderCursor(SYSCURSOR); + loopoperations(LOOP_SELECT); + return; + } } } if(!cancel){ diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 3cafeef230d..6de1d945485 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -916,6 +916,14 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) case BKEY: if((G.qual==LR_SHIFTKEY)) set_render_border(); + else if((G.qual==LR_ALTKEY)){ + if(G.obedit && G.obedit->type==OB_MESH) { + /* Loop Select Operations */ + /* Vertexloop */ + /* Faceloop */ + vertex_loop_select(); + } + } else if((G.qual==0)) borderselect(); break; |