[Bf-blender-cvs] [8c5d9fa9291] master: Cleanup: Remove duplicate warning from subdivision surface node

Hans Goudey noreply at git.blender.org
Wed Sep 15 21:19:19 CEST 2021


Commit: 8c5d9fa92919020293f2639caa77ec2f9e65ae0f
Author: Hans Goudey
Date:   Wed Sep 15 14:19:08 2021 -0500
Branches: master
https://developer.blender.org/rB8c5d9fa92919020293f2639caa77ec2f9e65ae0f

Cleanup: Remove duplicate warning from subdivision surface node

===================================================================

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 d127f7dc0ba..4541bf3569f 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
@@ -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
 }



More information about the Bf-blender-cvs mailing list