Fix Cycles not taking into account CYCLES_SHADER_PATH for finding stdcycles.h
Contributed by howetuft. Differential Revision: https://developer.blender.org/D9973
This commit is contained in:
parent
dc170a6d67
commit
2cd091e9c7
Notes:
blender-bot
2023-02-14 07:47:59 +01:00
Referenced by issue #84717, Shading changes in the viewport shading popup menu require movement in the 3D viewport to take affect.
|
@ -323,7 +323,7 @@ bool OSLShaderManager::osl_compile(const string &inputfile, const string &output
|
|||
string include_path_arg = string("-I") + shader_path;
|
||||
options.push_back(include_path_arg);
|
||||
|
||||
stdosl_path = path_get("shader/stdcycles.h");
|
||||
stdosl_path = path_join(shader_path, "stdcycles.h");
|
||||
|
||||
/* compile */
|
||||
OSL::OSLCompiler *compiler = new OSL::OSLCompiler(&OSL::ErrorHandler::default_handler());
|
||||
|
|
Loading…
Reference in New Issue