1
0
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:
bitsawer
2023-09-04 14:51:04 +03:00
parent 2282fc5de9
commit 3c042fb99f
3 changed files with 33 additions and 10 deletions

View File

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