From 8de942b11d41485ab3dbf3ac0834d8eef12b5b4f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 26 Oct 2021 15:38:37 +0200 Subject: Cleanup: compiler warning when building without OpenSubdiv --- intern/cycles/scene/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/scene/scene.cpp b/intern/cycles/scene/scene.cpp index 8cde4873eab..ef0ee0c6625 100644 --- a/intern/cycles/scene/scene.cpp +++ b/intern/cycles/scene/scene.cpp @@ -505,8 +505,8 @@ void Scene::update_kernel_features() kernel_features |= KERNEL_FEATURE_SHADOW_CATCHER; } if (geom->is_mesh()) { - Mesh *mesh = static_cast(geom); #ifdef WITH_OPENSUBDIV + Mesh *mesh = static_cast(geom); if (mesh->get_subdivision_type() != Mesh::SUBDIVISION_NONE) { kernel_features |= KERNEL_FEATURE_PATCH_EVALUATION; } -- cgit v1.2.3