Merge pull request #95330 from Hilderin/fix-resolve-class-inheritance-after-file-rename

Fix resolve class inheritance after file rename
This commit is contained in:
Rémi Verschelde 2024-08-12 18:18:10 +02:00
commit f19e268c7a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 9 deletions

View File

@ -155,15 +155,7 @@ void GDScriptCache::move_script(const String &p_from, const String &p_to) {
return;
}
if (singleton->parser_map.has(p_from) && !p_from.is_empty()) {
singleton->parser_map[p_to] = singleton->parser_map[p_from];
}
singleton->parser_map.erase(p_from);
if (singleton->parser_inverse_dependencies.has(p_from) && !p_from.is_empty()) {
singleton->parser_inverse_dependencies[p_to] = singleton->parser_inverse_dependencies[p_from];
}
singleton->parser_inverse_dependencies.erase(p_from);
remove_parser(p_from);
if (singleton->shallow_gdscript_cache.has(p_from) && !p_from.is_empty()) {
singleton->shallow_gdscript_cache[p_to] = singleton->shallow_gdscript_cache[p_from];