mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix shader language preprocessor include marker handling
This commit is contained in:
parent
2282fc5de9
commit
3c042fb99f
3 changed files with 33 additions and 10 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue