[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57651] trunk/blender/intern/cycles/render /osl.cpp: Cycles OSL: don't set optimize=2 option in OSL shading system, this is already

Brecht Van Lommel brechtvanlommel at pandora.be
Sat Jun 22 14:52:15 CEST 2013


Revision: 57651
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57651
Author:   blendix
Date:     2013-06-22 12:52:15 +0000 (Sat, 22 Jun 2013)
Log Message:
-----------
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"

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/osl.cpp

Modified: trunk/blender/intern/cycles/render/osl.cpp
===================================================================
--- trunk/blender/intern/cycles/render/osl.cpp	2013-06-22 10:59:30 UTC (rev 57650)
+++ trunk/blender/intern/cycles/render/osl.cpp	2013-06-22 12:52:15 UTC (rev 57651)
@@ -186,9 +186,6 @@
 		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 */




More information about the Bf-blender-cvs mailing list