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:
Brecht Van Lommel
2021-01-12 14:30:35 +01:00
parent dc170a6d67
commit 2cd091e9c7

View File

@@ -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());