[Bf-blender-cvs] [8de942b11d4] master: Cleanup: compiler warning when building without OpenSubdiv
Brecht Van Lommel
noreply at git.blender.org
Tue Oct 26 15:49:20 CEST 2021
Commit: 8de942b11d41485ab3dbf3ac0834d8eef12b5b4f
Author: Brecht Van Lommel
Date: Tue Oct 26 15:38:37 2021 +0200
Branches: master
https://developer.blender.org/rB8de942b11d41485ab3dbf3ac0834d8eef12b5b4f
Cleanup: compiler warning when building without OpenSubdiv
===================================================================
M intern/cycles/scene/scene.cpp
===================================================================
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<Mesh *>(geom);
#ifdef WITH_OPENSUBDIV
+ Mesh *mesh = static_cast<Mesh *>(geom);
if (mesh->get_subdivision_type() != Mesh::SUBDIVISION_NONE) {
kernel_features |= KERNEL_FEATURE_PATCH_EVALUATION;
}
More information about the Bf-blender-cvs
mailing list