forked from bartvdbraak/blender
made changing mesh vert/edge/face modes redraw the image view since,
draw verts and faces in UV mode when face select is enabled but syncing with the mesh selection is not.
This commit is contained in:
parent
387d05aaef
commit
dff6276711
@ -451,7 +451,7 @@ static int draw_uvs_face_check(void)
|
||||
if (G.sima==NULL)
|
||||
return 0;
|
||||
if (G.sima->flag & SI_SYNC_UVSEL && G.scene->selectmode == SCE_SELECT_FACE)
|
||||
return 1;
|
||||
return 2;
|
||||
if (G.sima->flag & SI_SELACTFACE)
|
||||
return 1;
|
||||
return 0;
|
||||
@ -753,8 +753,9 @@ void draw_uvs_sima(void)
|
||||
}
|
||||
}
|
||||
bglEnd();
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (drawface != 2) { /* 2 means Mesh Face Mode */
|
||||
/* unselected uv's */
|
||||
BIF_ThemeColor(TH_VERTEX);
|
||||
pointsize = BIF_GetThemeValuef(TH_VERTEX_SIZE);
|
||||
|
@ -4715,6 +4715,7 @@ void do_view3d_buttons(short event)
|
||||
countall();
|
||||
BIF_undo_push("Selectmode Set: Vertex");
|
||||
allqueue(REDRAWVIEW3D, 1);
|
||||
allqueue(REDRAWIMAGE, 0); /* only needed in cases where mesh and UV selection are in sync */
|
||||
break;
|
||||
case B_SEL_EDGE:
|
||||
if( (G.qual & LR_SHIFTKEY)==0 || G.scene->selectmode==0){
|
||||
@ -4727,6 +4728,7 @@ void do_view3d_buttons(short event)
|
||||
countall();
|
||||
BIF_undo_push("Selectmode Set: Edge");
|
||||
allqueue(REDRAWVIEW3D, 1);
|
||||
allqueue(REDRAWIMAGE, 0); /* only needed in cases where mesh and UV selection are in sync */
|
||||
break;
|
||||
case B_SEL_FACE:
|
||||
if( (G.qual & LR_SHIFTKEY)==0 || G.scene->selectmode==0){
|
||||
@ -4739,6 +4741,7 @@ void do_view3d_buttons(short event)
|
||||
countall();
|
||||
BIF_undo_push("Selectmode Set: Face");
|
||||
allqueue(REDRAWVIEW3D, 1);
|
||||
allqueue(REDRAWIMAGE, 0); /* only needed in cases where mesh and UV selection are in sync */
|
||||
break;
|
||||
|
||||
case B_MAN_TRANS:
|
||||
|
Loading…
Reference in New Issue
Block a user