Fix: Warning from incorrect use of macro
From d52551401e
, exposed by recent C++ conversion.
This commit is contained in:
parent
9c8998ed11
commit
42f9430a3a
|
@ -1285,7 +1285,7 @@ bool UI_panel_should_show_background(const ARegion *region, const PanelType *pan
|
|||
void UI_panel_category_draw_all(ARegion *region, const char *category_id_active)
|
||||
{
|
||||
// #define USE_FLAT_INACTIVE
|
||||
const bool is_left = (bool)RGN_ALIGN_ENUM_FROM_MASK(region->alignment != RGN_ALIGN_RIGHT);
|
||||
const bool is_left = RGN_ALIGN_ENUM_FROM_MASK(region->alignment) != RGN_ALIGN_RIGHT;
|
||||
View2D *v2d = ®ion->v2d;
|
||||
const uiStyle *style = UI_style_get();
|
||||
const uiFontStyle *fstyle = &style->widget;
|
||||
|
|
Loading…
Reference in New Issue