diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-08 13:45:57 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-08 13:45:57 +0100 |
| commit | 9a793d95eb8d6220084bbe3de1b8fd01e7b65701 (patch) | |
| tree | 19b880894f18188d2a86366a010c06b82a47bf81 /modules/gdscript | |
| parent | fd6f6a05bf924a6331fd525c0ec33b002285bbc1 (diff) | |
| parent | a06e5f70bcc06fab9d3303dc40e2d912e2db7df3 (diff) | |
| download | redot-engine-9a793d95eb8d6220084bbe3de1b8fd01e7b65701.tar.gz | |
Merge pull request #87124 from rsubtil/bugfix-warn_as_err
Simplify script paths to ensure proper resource path checks
Diffstat (limited to 'modules/gdscript')
| -rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 8293990dc6..129d62cabd 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -330,7 +330,7 @@ Error GDScriptParser::parse(const String &p_source_code, const String &p_script_ tokenizer.set_source_code(source); tokenizer.set_cursor_position(cursor_line, cursor_column); - script_path = p_script_path; + script_path = p_script_path.simplify_path(); current = tokenizer.scan(); // Avoid error or newline as the first token. // The latter can mess with the parser when opening files filled exclusively with comments and newlines. |
