mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Implement coloring for disabled branches in the shader editor
This commit is contained in:
@@ -47,7 +47,7 @@ void ShaderInclude::set_code(const String &p_code) {
|
||||
{
|
||||
String pp_code;
|
||||
ShaderPreprocessor preprocessor;
|
||||
preprocessor.preprocess(p_code, pp_code, nullptr, nullptr, &new_dependencies);
|
||||
preprocessor.preprocess(p_code, "", pp_code, nullptr, nullptr, nullptr, &new_dependencies);
|
||||
}
|
||||
|
||||
// This ensures previous include resources are not freed and then re-loaded during parse (which would make compiling slower)
|
||||
|
||||
Reference in New Issue
Block a user