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"
This commit is contained in:
Brecht Van Lommel 2013-06-22 12:52:15 +00:00
parent dfbbac9b94
commit 5da48f425f

@ -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 */