[Bf-blender-cvs] [4734de1093a] master: Cleanup: correction to unused warning removal
Campbell Barton
noreply at git.blender.org
Thu Aug 19 05:19:09 CEST 2021
Commit: 4734de1093a1a60621ec6b10e2e56cd09aa3fc64
Author: Campbell Barton
Date: Thu Aug 19 13:17:37 2021 +1000
Branches: master
https://developer.blender.org/rB4734de1093a1a60621ec6b10e2e56cd09aa3fc64
Cleanup: correction to unused warning removal
This broke building without opensubdiv
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list