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.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -2243,6 +2243,8 @@ 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){
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user