You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix shader language preprocessor include marker handling
This commit is contained in:
@@ -747,7 +747,7 @@ void ShaderPreprocessor::process_include(Tokenizer *p_tokenizer) {
|
||||
processor.preprocess(state, included, result);
|
||||
add_to_output("@@>" + real_path + "\n"); // Add token for enter include path
|
||||
add_to_output(result);
|
||||
add_to_output("\n@@<\n"); // Add token for exit include path
|
||||
add_to_output("\n@@<" + real_path + "\n"); // Add token for exit include path.
|
||||
|
||||
// Reset to last include if there are no errors. We want to use this as context.
|
||||
if (state->error.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user