diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-10-26 16:38:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-10-26 16:38:37 +0300 |
commit | 8de942b11d41485ab3dbf3ac0834d8eef12b5b4f (patch) | |
tree | 0d463876e5f6a82123b6c90bb7d3b2bc9db51c2c | |
parent | 949dbb08d2693a899da19d3540d939ad5fb4fe24 (diff) |
Cleanup: compiler warning when building without OpenSubdiv
-rw-r--r-- | intern/cycles/scene/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |