diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-08-03 15:19:31 +0300 |
---|---|---|
committer | Yuri Rubinsky <chaosus89@gmail.com> | 2022-08-14 13:57:26 +0300 |
commit | 22df2c527bb1d7ad026e12064b0d87f8da12a1b2 (patch) | |
tree | f1f5cae2b5d1f6814f04b2a553b5e07899b3795c /scene/resources/shader.cpp | |
parent | f2a61684143af02a8cbe7002645af817607f9bd6 (diff) |
Implement coloring for disabled branches in the shader editor
Diffstat (limited to 'scene/resources/shader.cpp')
-rw-r--r-- | scene/resources/shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index db7b03f2be..48d06934e3 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -82,7 +82,7 @@ void Shader::set_code(const String &p_code) { // 1) Need to keep track of include dependencies at resource level // 2) Server does not do interaction with Resource filetypes, this is a scene level feature. ShaderPreprocessor preprocessor; - preprocessor.preprocess(p_code, pp_code, nullptr, nullptr, &new_include_dependencies); + preprocessor.preprocess(p_code, "", pp_code, nullptr, nullptr, nullptr, &new_include_dependencies); } // This ensures previous include resources are not freed and then re-loaded during parse (which would make compiling slower) |