Cleanup: Remove duplicate warning from subdivision surface node

This commit is contained in:
Hans Goudey 2021-09-15 14:19:08 -05:00
parent 525def99bc
commit 8c5d9fa929
1 changed files with 3 additions and 4 deletions

View File

@ -37,14 +37,13 @@ static void geo_node_subdivision_surface_layout(uiLayout *layout,
bContext *UNUSED(C),
PointerRNA *ptr)
{
#ifndef WITH_OPENSUBDIV
UNUSED_VARS(ptr);
uiItemL(layout, IFACE_("Disabled, built without OpenSubdiv"), ICON_ERROR);
#else
#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
}