diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-09 06:22:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-09 06:22:16 +0300 |
commit | 745576b16e32343fedd8040f284b9001d8b72c77 (patch) | |
tree | 46445fa7dea45408a196678176c9c01c4dc8705e /source/blender/modifiers/intern/MOD_boolean.c | |
parent | d25ab68cf4b28c01281dd689a3926887fa7d32a4 (diff) |
UI: Clean up sub-panel for new boolean modifier options
A few changes to make this consistent with other modifier panels:
- Title case for UI labels
- Use property split (and therefore decorators)
- Declare sublayout variables after getting modifier info
Diffstat (limited to 'source/blender/modifiers/intern/MOD_boolean.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c index 74a0687e64b..6ffbf518dd1 100644 --- a/source/blender/modifiers/intern/MOD_boolean.c +++ b/source/blender/modifiers/intern/MOD_boolean.c @@ -864,13 +864,15 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel) static void solver_options_panel_draw(const bContext *UNUSED(C), Panel *panel) { uiLayout *layout = panel->layout; - uiLayout *col = uiLayoutColumn(layout, true); PointerRNA *ptr = modifier_panel_get_property_pointers(panel, NULL); const bool use_exact = RNA_enum_get(ptr, "solver") == eBooleanModifierSolver_Exact; const bool operand_object = RNA_enum_get(ptr, "operand_type") == eBooleanModifierFlag_Object; + uiLayoutSetPropSep(layout, true); + + uiLayout *col = uiLayoutColumn(layout, true); if (use_exact) { /* When operand is collection, we always use_self. */ if (operand_object) { @@ -883,7 +885,6 @@ static void solver_options_panel_draw(const bContext *UNUSED(C), Panel *panel) } if (G.debug) { - col = uiLayoutColumn(layout, true); uiItemR(col, ptr, "debug_options", 0, NULL, ICON_NONE); } } |