[Bf-blender-cvs] [b6bed63b5ba] master: UI: Hide labels for subdivision surface node enums

Hans Goudey noreply at git.blender.org
Wed Oct 27 15:52:53 CEST 2021


Commit: b6bed63b5bae9f64959e3c03b1f6f6cf7c091163
Author: Hans Goudey
Date:   Wed Oct 27 08:52:46 2021 -0500
Branches: master
https://developer.blender.org/rBb6bed63b5bae9f64959e3c03b1f6f6cf7c091163

UI: Hide labels for subdivision surface node enums

The text is just too long, it doesn't fit in the node width,
and the tooltips display the property names well enough,
since they aren't used as often as other settings.
Also display the text in lite builds too, there is no reason not to.

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

M	source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
index 22bfe2a2bc7..57c0dfc5b09 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
@@ -46,14 +46,8 @@ static void geo_node_subdivision_surface_layout(uiLayout *layout,
                                                 bContext *UNUSED(C),
                                                 PointerRNA *ptr)
 {
-#ifdef WITH_OPENSUBDIV
-  uiLayoutSetPropSep(layout, true);
-  uiLayoutSetPropDecorate(layout, false);
-  uiItemR(layout, ptr, "uv_smooth", 0, nullptr, ICON_NONE);
-  uiItemR(layout, ptr, "boundary_smooth", 0, nullptr, ICON_NONE);
-#else
-  UNUSED_VARS(layout, ptr);
-#endif
+  uiItemR(layout, ptr, "uv_smooth", 0, "", ICON_NONE);
+  uiItemR(layout, ptr, "boundary_smooth", 0, "", ICON_NONE);
 }
 
 static void geo_node_subdivision_surface_init(bNodeTree *UNUSED(ntree), bNode *node)



More information about the Bf-blender-cvs mailing list