Add missing packed scene cache clear inside GDScriptCache::clear()

This commit is contained in:
Adam Scott 2022-12-07 15:29:18 -05:00
parent a7937fe54c
commit 59c6642f2a

View file

@ -398,6 +398,11 @@ void GDScriptCache::clear() {
E->clear(); E->clear();
} }
for (KeyValue<String, HashSet<String>> &E : singleton->packed_scene_dependencies) {
singleton->packed_scene_dependencies.erase(E.key);
singleton->packed_scene_cache.erase(E.key);
}
parser_map_refs.clear(); parser_map_refs.clear();
singleton->parser_map.clear(); singleton->parser_map.clear();
singleton->shallow_gdscript_cache.clear(); singleton->shallow_gdscript_cache.clear();