Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-10-27 16:52:46 +0300
committerHans Goudey <h.goudey@me.com>2021-10-27 16:52:46 +0300
commitb6bed63b5bae9f64959e3c03b1f6f6cf7c091163 (patch)
tree64b9944fda103c76023a7491ff1a36a3cc091c61 /source/blender
parent383985a91bf3c1057425dd4b0972142d41d7f0ef (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc10
1 files changed, 2 insertions, 8 deletions
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)