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.
This commit is contained in:
Hans Goudey 2021-10-27 08:52:46 -05:00
parent 383985a91b
commit b6bed63b5b
1 changed files with 2 additions and 8 deletions

View File

@ -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)