Header redraw added for 'select mode menu'. Also checked more files for it.
authorTon Roosendaal <ton@blender.org>
Fri, 1 Oct 2004 10:10:09 +0000 (10:10 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 1 Oct 2004 10:10:09 +0000 (10:10 +0000)
Reminder, the allqueue() function needs as last arg a '1' if you want header
to be refreshed too!

source/blender/src/editmesh_mods.c
source/blender/src/editview.c
source/blender/src/header_view3d.c
source/blender/src/space.c

index e34ce22a70167e2c6a0139bef34c081948bf0d51..decc534b6bc5fc354a8820dc19e0ae2031046f8e 100644 (file)
@@ -1591,7 +1591,7 @@ void EM_selectmode_menu(void)
                else G.scene->selectmode= SCE_SELECT_FACE;
        
                EM_selectmode_set(); // when mode changes
-               allqueue(REDRAWVIEW3D, 0);
+               allqueue(REDRAWVIEW3D, 1);
        }
 }
 
index 21077c112bc6c2ed3474352e5c229c101aa53f12..65c80f6388af8bd826a8e59e5c0f5efc5e40dff1 100644 (file)
@@ -889,7 +889,7 @@ void mouse_select(void)
                }
 
                /* complete redraw when: */
-               if(G.f & (G_VERTEXPAINT+G_FACESELECT+G_TEXTUREPAINT+G_WEIGHTPAINT)) allqueue(REDRAWVIEW3D, 0);
+               if(G.f & (G_VERTEXPAINT+G_FACESELECT+G_TEXTUREPAINT+G_WEIGHTPAINT)) allqueue(REDRAWVIEW3D, 1);
                
        }
        else {
index 6f05c4057cad8dcc22ef3e6c4b53a39b826b205a..3bfb47c15561e66644c933db2422d4a0c6d54d6e 100644 (file)
@@ -390,7 +390,7 @@ static void do_view3d_viewmenu(void *arg, int event)
                add_blockhandler(curarea, VIEW3D_HANDLER_PROPERTIES, UI_PNL_UNSTOW);
                break;
        }
-       allqueue(REDRAWVIEW3D, 0);
+       allqueue(REDRAWVIEW3D, 1);
 }
 
 static uiBlock *view3d_viewmenu(void *arg_unused)
@@ -1792,7 +1792,7 @@ static void do_view3d_edit_propfalloffmenu(void *arg, int event)
                prop_mode = 1;
                break;
                }
-       allqueue(REDRAWVIEW3D, 0);
+       allqueue(REDRAWVIEW3D, 1);
 }
 
 static uiBlock *view3d_edit_propfalloffmenu(void *arg_unused)
@@ -3638,7 +3638,7 @@ void do_view3d_buttons(short event)
                                enter_posemode();
                        }
                }
-               allqueue(REDRAWVIEW3D, 0);
+               allqueue(REDRAWVIEW3D, 1);
                break;
        case B_AROUND:
                handle_view3d_around();
@@ -3648,19 +3648,19 @@ void do_view3d_buttons(short event)
                if( (G.qual & LR_SHIFTKEY)==0 || G.scene->selectmode==0)
                        G.scene->selectmode= SCE_SELECT_VERTEX;
                EM_selectmode_set();
-               allqueue(REDRAWVIEW3D, 0);
+               allqueue(REDRAWVIEW3D, 1);
                break;
        case B_SEL_EDGE:
                if( (G.qual & LR_SHIFTKEY)==0 || G.scene->selectmode==0)
                        G.scene->selectmode= SCE_SELECT_EDGE;
                EM_selectmode_set();
-               allqueue(REDRAWVIEW3D, 0);
+               allqueue(REDRAWVIEW3D, 1);
                break;
        case B_SEL_FACE:
                if( (G.qual & LR_SHIFTKEY)==0 || G.scene->selectmode==0)
                        G.scene->selectmode= SCE_SELECT_FACE;
                EM_selectmode_set();
-               allqueue(REDRAWVIEW3D, 0);
+               allqueue(REDRAWVIEW3D, 1);
                break;
                
        default:
index 474c74b425faf595d24142ee3b33e182a898c497..ac21a92399017681ded145ef3a9e1df0c2886edb 100644 (file)
@@ -377,7 +377,7 @@ static void RestoreState(void)
 {
        curarea->win_swap = 0;
        curarea->head_swap=0;
-       allqueue(REDRAWVIEW3D, 0);
+       allqueue(REDRAWVIEW3D, 1);
        allqueue(REDRAWBUTSALL, 0);
        reset_slowparents();
        waitcursor(0);