Cleanup: compiler warning when building without OpenSubdiv

This commit is contained in:
Brecht Van Lommel 2021-10-26 15:38:37 +02:00
parent 949dbb08d2
commit 8de942b11d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}