Merge pull request #69740 from adamscott/add-missing-gdscript_cache-scene-cache-clear

Add missing packed scene cache clear inside `GDScriptCache::clear()`
This commit is contained in:
Rémi Verschelde 2022-12-07 22:22:54 +01:00 committed by GitHub
commit 5852efedbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -398,6 +398,11 @@ void GDScriptCache::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();
singleton->parser_map.clear();
singleton->shallow_gdscript_cache.clear();