From 5da48f425fcfeb7b3eae67df4ac0d29e698809f6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 22 Jun 2013 12:52:15 +0000 Subject: [PATCH] Cycles OSL: don't set optimize=2 option in OSL shading system, this is already the default, and by not setting it the user can override it with an environmnet variable, for example: export OSL_OPTIONS="optimize=0" --- intern/cycles/render/osl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/intern/cycles/render/osl.cpp b/intern/cycles/render/osl.cpp index 52e4c697ba8..56bb9582172 100644 --- a/intern/cycles/render/osl.cpp +++ b/intern/cycles/render/osl.cpp @@ -186,9 +186,6 @@ void OSLShaderManager::shading_system_init() ss_shared = OSL::ShadingSystem::create(services_shared, ts_shared, &errhandler); ss_shared->attribute("lockgeom", 1); ss_shared->attribute("commonspace", "world"); - ss_shared->attribute("optimize", 2); - //ss_shared->attribute("debug", 1); - //ss_shared->attribute("statistics:level", 1); ss_shared->attribute("searchpath:shader", path_get("shader")); /* our own ray types */