Fix #33405: preview render getting stuck in a particular .blend file, ObjectKey
[blender.git] / intern / cycles / render / mesh.cpp
index 1958cfc10f7d1721121952e1c658a6d5d787393f..bc782a78c60648b6bf98cfad063e6b67d29cb2e3 100644 (file)
@@ -547,7 +547,7 @@ void MeshManager::device_update_attributes(Device *device, DeviceScene *dscene,
        }
 
        /* create attribute lookup maps */
-       if(scene->params.shadingsystem == SceneParams::OSL)
+       if(scene->shader_manager->use_osl())
                update_osl_attributes(device, scene, mesh_attributes);
        else
                update_svm_attributes(device, dscene, scene, mesh_attributes);