Cleanup: Remove unused scrollbar drawing flag

Apparently this was used for progressbar drawing, which doesn't share
the code anymore.
This commit is contained in:
Julian Eisel 2022-05-21 00:50:26 +02:00
parent 0d73113452
commit dfb8c90324
Notes: blender-bot 2023-02-14 06:00:51 +01:00
Referenced by issue #98956, Geometry Nodes crash when using "Store Named Attribute" with name "id"
Referenced by issue #98910, Python: bizarre behavior of mesh.normals_split_custom_set for vectors with length < 1
2 changed files with 0 additions and 11 deletions

View File

@ -454,7 +454,6 @@ void UI_draw_safe_areas(uint pos,
enum {
UI_SCROLL_PRESSED = 1 << 0,
UI_SCROLL_ARROWS = 1 << 1,
UI_SCROLL_NO_OUTLINE = 1 << 2,
};
/**
* Function in use for buttons and for view2d sliders.

View File

@ -3506,7 +3506,6 @@ static void widget_numbut_embossn(const uiBut *UNUSED(but),
void UI_draw_widget_scroll(uiWidgetColors *wcol, const rcti *rect, const rcti *slider, int state)
{
uiWidgetBase wtb;
bool outline = false;
widget_init(&wtb);
@ -3551,11 +3550,6 @@ void UI_draw_widget_scroll(uiWidgetColors *wcol, const rcti *rect, const rcti *s
/* draw */
wtb.draw_emboss = false; /* only emboss once */
/* exception for progress bar */
if (state & UI_SCROLL_NO_OUTLINE) {
SWAP(bool, outline, wtb.draw_outline);
}
round_box_edges(&wtb, UI_CNR_ALL, slider, rad);
if (state & UI_SCROLL_ARROWS) {
@ -3583,10 +3577,6 @@ void UI_draw_widget_scroll(uiWidgetColors *wcol, const rcti *rect, const rcti *s
}
}
widgetbase_draw(&wtb, wcol);
if (state & UI_SCROLL_NO_OUTLINE) {
SWAP(bool, outline, wtb.draw_outline);
}
}
}