[Bf-blender-cvs] [70994592459] master: UI: Use consistent order in ocean modifier
Hans Goudey
noreply at git.blender.org
Thu Jul 2 17:55:54 CEST 2020
Commit: 7099459245983fd731cf25baf4df0330d4b671e1
Author: Hans Goudey
Date: Thu Jul 2 11:55:37 2020 -0400
Branches: master
https://developer.blender.org/rB7099459245983fd731cf25baf4df0330d4b671e1
UI: Use consistent order in ocean modifier
===================================================================
M source/blender/modifiers/intern/MOD_ocean.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_ocean.c b/source/blender/modifiers/intern/MOD_ocean.c
index 873bdb7f120..cb5c67087c4 100644
--- a/source/blender/modifiers/intern/MOD_ocean.c
+++ b/source/blender/modifiers/intern/MOD_ocean.c
@@ -629,21 +629,23 @@ static void foam_panel_draw(const bContext *C, Panel *panel)
col = uiLayoutColumn(layout, false);
uiLayoutSetActive(col, use_foam);
- uiItemR(col, &ptr, "foam_coverage", 0, IFACE_("Coverage"), ICON_NONE);
-
- col = uiLayoutColumn(layout, true);
- uiLayoutSetActive(col, use_foam);
uiItemR(col, &ptr, "foam_layer_name", 0, IFACE_("Data Layer"), ICON_NONE);
+ uiItemR(col, &ptr, "foam_coverage", 0, IFACE_("Coverage"), ICON_NONE);
}
static void spray_panel_draw_header(const bContext *C, Panel *panel)
{
+ uiLayout *row;
uiLayout *layout = panel->layout;
PointerRNA ptr;
modifier_panel_get_property_pointers(C, panel, NULL, &ptr);
- uiItemR(layout, &ptr, "use_spray", 0, IFACE_("Spray"), ICON_NONE);
+ bool use_foam = RNA_boolean_get(&ptr, "use_foam");
+
+ row = uiLayoutRow(layout, false);
+ uiLayoutSetActive(row, use_foam);
+ uiItemR(row, &ptr, "use_spray", 0, IFACE_("Spray"), ICON_NONE);
}
static void spray_panel_draw(const bContext *C, Panel *panel)
More information about the Bf-blender-cvs
mailing list