mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
GDScript: invalidate GDScriptParserRef when reloading
This commit is contained in:
parent
029aadef56
commit
6b88c86cec
8 changed files with 139 additions and 106 deletions
|
@ -163,7 +163,7 @@ bool GDScriptLanguage::validate(const String &p_script, const String &p_path, Li
|
|||
r_errors->push_back(e);
|
||||
}
|
||||
|
||||
for (KeyValue<String, Ref<GDScriptParserRef>> E : analyzer.get_depended_parsers()) {
|
||||
for (KeyValue<String, Ref<GDScriptParserRef>> E : parser.get_depended_parsers()) {
|
||||
GDScriptParser *depended_parser = E.value->get_parser();
|
||||
for (const GDScriptParser::ParserError &pe : depended_parser->get_errors()) {
|
||||
ScriptLanguage::ScriptError e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue