Bugfix for Transform Orientation Panel:
authorJoshua Leung <aligorith@gmail.com>
Mon, 14 Jan 2008 02:49:25 +0000 (02:49 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 14 Jan 2008 02:49:25 +0000 (02:49 +0000)
Removed a pair of uiPanelPush()/uiPanelPop() calls from the Transform Orientation panel, which were causing minor redraw/refresh problems for the panel's buttons here.

source/blender/src/drawview.c

index b637118e38a4bc4d735cfc1ed86217aadde746ba..fd23761c82c155bb054b8962b4ab93e8e8fc2320 100644 (file)
@@ -2275,9 +2275,7 @@ static void view3d_panel_transform_spaces(short cntrl)
        uiDefBut(block, BUT, B_TRANSFORMSPACECLEAR, "Clear", xco + 80,120,80,20, 0, 0, 0, 0, 0, "Removal all Transform Orientations");
        
        uiBlockEndAlign(block);
-
-       uiPanelPush(block);
-
+       
        uiBlockBeginAlign(block);
        
        uiDefButS(block, ROW, REDRAWHEADERS, "Global",  xco,            90, 40,20, &G.vd->twmode, 5.0, (float)V3D_MANIP_GLOBAL,0, 0, "Global Transform Orientation");
@@ -2298,8 +2296,6 @@ static void view3d_panel_transform_spaces(short cntrl)
                yco -= 25;
        }
        uiBlockEndAlign(block);
-
-       uiPanelPop(block);
        
        if(yco < 0) uiNewPanelHeight(block, height-yco);
 }