Bugfix #21215: Panning Properties header shows unnecessary space.
There was an additional 'magic number' offset for the header width, from the days when there was the frame number and subtabs in the header. -- Removed an obsolete and commented out line.
This commit is contained in:
@@ -138,7 +138,7 @@ void buttons_header_buttons(const bContext *C, ARegion *ar)
|
||||
uiBlockEndAlign(block);
|
||||
|
||||
/* always as last */
|
||||
UI_view2d_totRect_set(&ar->v2d, xco+XIC+80, ar->v2d.tot.ymax-ar->v2d.tot.ymin);
|
||||
UI_view2d_totRect_set(&ar->v2d, xco+(XIC/2), ar->v2d.tot.ymax-ar->v2d.tot.ymin);
|
||||
|
||||
uiEndBlock(C, block);
|
||||
uiDrawBlock(C, block);
|
||||
|
||||
@@ -2227,8 +2227,6 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
|
||||
|
||||
// REEB_draw();
|
||||
|
||||
// if(scene->radio) RAD_drawall(v3d->drawtype>=OB_SOLID);
|
||||
|
||||
/* Transp and X-ray afterdraw stuff */
|
||||
view3d_draw_transp(scene, ar, v3d);
|
||||
view3d_draw_xray(scene, ar, v3d, 1); // clears zbuffer if it is used!
|
||||
|
||||
Reference in New Issue
Block a user