[Bf-blender-cvs] [42a030ccaca] modifier-panels-ui: Triangulate Modifier UI update

Hans Goudey noreply at git.blender.org
Sat Apr 4 20:28:14 CEST 2020


Commit: 42a030ccacafb786f5564aa2e6936a04b37fcbe1
Author: Hans Goudey
Date:   Sat Apr 4 13:27:31 2020 -0500
Branches: modifier-panels-ui
https://developer.blender.org/rB42a030ccacafb786f5564aa2e6936a04b37fcbe1

Triangulate Modifier UI update

===================================================================

M	source/blender/modifiers/intern/MOD_triangulate.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_triangulate.c b/source/blender/modifiers/intern/MOD_triangulate.c
index bd435229eca..e1934a3f301 100644
--- a/source/blender/modifiers/intern/MOD_triangulate.c
+++ b/source/blender/modifiers/intern/MOD_triangulate.c
@@ -128,7 +128,6 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *UNUSED(c
 
 static void panel_draw(const bContext *C, Panel *panel)
 {
-  uiLayout *col, *split;
   uiLayout *layout = panel->layout;
 
   PointerRNA ptr;
@@ -136,17 +135,12 @@ static void panel_draw(const bContext *C, Panel *panel)
   modifier_panel_get_property_pointers(C, panel, &ob_ptr, &ptr);
   modifier_panel_buttons(C, panel);
 
-  split = uiLayoutSplit(layout, 0.5f, false);
-  col = uiLayoutColumn(split, false);
-  uiItemL(col, IFACE_("Quad Method:"), ICON_NONE);
-  uiItemR(col, &ptr, "quad_method", 0, "", ICON_NONE);
-  uiItemR(col, &ptr, "keep_custom_normals", 0, NULL, ICON_NONE);
-
-  col = uiLayoutColumn(split, false);
-  uiItemL(col, IFACE_("Ngon Method:"), ICON_NONE);
-  uiItemR(col, &ptr, "ngon_method", 0, "", ICON_NONE);
-  uiItemL(col, IFACE_("Minimum Vertices:"), ICON_NONE);
-  uiItemR(col, &ptr, "min_vertices", 0, "", ICON_NONE);
+  uiLayoutSetPropSep(layout, true);
+
+  uiItemR(layout, &ptr, "quad_method", 0, NULL, ICON_NONE);
+  uiItemR(layout, &ptr, "ngon_method", 0, NULL, ICON_NONE);
+  uiItemR(layout, &ptr, "min_vertices", 0, NULL, ICON_NONE);
+  uiItemR(layout, &ptr, "keep_custom_normals", 0, NULL, ICON_NONE);
 
   modifier_panel_end(layout, &ptr);
 }



More information about the Bf-blender-cvs mailing list