Cleanup: correction to unused warning removal

This broke building without opensubdiv
This commit is contained in:
Campbell Barton 2021-08-19 13:17:37 +10:00
parent 594790d8a5
commit 4734de1093
1 changed files with 2 additions and 1 deletions

View File

@ -37,9 +37,10 @@ static bNodeSocketTemplate geo_node_subdivision_surface_out[] = {
static void geo_node_subdivision_surface_layout(uiLayout *layout,
bContext *UNUSED(C),
PointerRNA *UNUSED(ptr))
PointerRNA *ptr)
{
#ifndef WITH_OPENSUBDIV
UNUSED_VARS(ptr);
uiItemL(layout, IFACE_("Disabled, built without OpenSubdiv"), ICON_ERROR);
#else
uiLayoutSetPropSep(layout, true);