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:
authorCampbell Barton <ideasman42@gmail.com>2021-08-19 06:17:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-19 06:18:51 +0300
commit4734de1093a1a60621ec6b10e2e56cd09aa3fc64 (patch)
tree7f0b2d1f4110320afa5abab2c32830db27164c36
parent594790d8a56777c4436b4da2165113d59d57283a (diff)
Cleanup: correction to unused warning removal
This broke building without opensubdiv
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc3
1 files changed, 2 insertions, 1 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 49664323e89..e524564edab 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
@@ -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);