Skip to content

Commit

Permalink
Merge pull request #95330 from Hilderin/fix-resolve-class-inheritance…
Browse files Browse the repository at this point in the history
…-after-file-rename

Fix resolve class inheritance after file rename
  • Loading branch information
akien-mga committed Aug 12, 2024
2 parents 0444fb6 + d199f1f commit f19e268
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/gdscript/gdscript_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f19e268

Please sign in to comment.