Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-08-03 17:41:01 +0300
committerHans Goudey <h.goudey@me.com>2022-08-03 17:41:01 +0300
commit42f9430a3a901ec8f27ab70727ca8b2138309536 (patch)
treefe9e6330f38ec7a5be7d16cf532699c53e33354b /source/blender/editors/interface/interface_panel.cc
parent9c8998ed1153109382944c42b7b6d6a5b3a98df3 (diff)
Fix: Warning from incorrect use of macro
From d52551401e18, exposed by recent C++ conversion.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.cc')
-rw-r--r--source/blender/editors/interface/interface_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.cc b/source/blender/editors/interface/interface_panel.cc
index 53f1265ee74..9199e6d052d 100644
--- a/source/blender/editors/interface/interface_panel.cc
+++ b/source/blender/editors/interface/interface_panel.cc
@@ -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 = &region->v2d;
const uiStyle *style = UI_style_get();
const uiFontStyle *fstyle = &style->widget;