[Bf-blender-cvs] [6c655d6a508] modifier-panels-ui: Solidify UI checkbox layout update
William Reynish
noreply at git.blender.org
Thu Apr 9 00:31:17 CEST 2020
Commit: 6c655d6a5085fefe279f47a5e074175a49863609
Author: William Reynish
Date: Thu Apr 9 00:30:26 2020 +0200
Branches: modifier-panels-ui
https://developer.blender.org/rB6c655d6a5085fefe279f47a5e074175a49863609
Solidify UI checkbox layout update
===================================================================
M source/blender/modifiers/intern/MOD_solidify.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c
index 134ac58cc54..408beeb603d 100644
--- a/source/blender/modifiers/intern/MOD_solidify.c
+++ b/source/blender/modifiers/intern/MOD_solidify.c
@@ -97,7 +97,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
static void panel_draw(const bContext *C, Panel *panel)
{
- uiLayout *sub, *row, *col, *flow;
+ uiLayout *sub, *row, *col;
uiLayout *layout = panel->layout;
PointerRNA ptr;
@@ -120,16 +120,15 @@ static void panel_draw(const bContext *C, Panel *panel)
uiItemR(layout, &ptr, "thickness", 0, NULL, ICON_NONE);
uiItemR(layout, &ptr, "offset", 0, NULL, ICON_NONE);
- flow = uiLayoutGridFlow(layout, true, 0, true, false, false);
- col = uiLayoutColumn(flow, false);
+ col = uiLayoutColumnWithHeading(layout, false, "Normal");
uiItemR(col, &ptr, "use_flip_normals", 0, NULL, ICON_NONE);
if (solidify_mode == MOD_SOLIDIFY_MODE_EXTRUDE) {
+ uiItemR(col, &ptr, "use_quality_normals", 0, IFACE_("High Quality"), ICON_NONE);
uiItemR(col, &ptr, "use_even_offset", 0, NULL, ICON_NONE);
- uiItemR(col, &ptr, "use_quality_normals", 0, NULL, ICON_NONE);
}
- col = uiLayoutColumn(flow, false);
- uiItemR(col, &ptr, "use_rim", 0, NULL, ICON_NONE);
+ col = uiLayoutColumnWithHeading(layout, false, "Rim");
+ uiItemR(col, &ptr, "use_rim", 0, IFACE_("Fill"), ICON_NONE);
sub = uiLayoutColumn(col, false);
uiLayoutSetActive(sub, RNA_boolean_get(&ptr, "use_rim"));
uiItemR(sub, &ptr, "use_rim_only", 0, NULL, ICON_NONE);
More information about the Bf-blender-cvs
mailing list