diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-27 16:52:46 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-27 16:52:46 +0300 |
commit | b6bed63b5bae9f64959e3c03b1f6f6cf7c091163 (patch) | |
tree | 64b9944fda103c76023a7491ff1a36a3cc091c61 /source/blender/nodes | |
parent | 383985a91bf3c1057425dd4b0972142d41d7f0ef (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/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc | 10 |
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) |