diff options
author | Adam Scott <ascott.ca@gmail.com> | 2022-12-07 15:29:18 -0500 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2022-12-07 15:29:18 -0500 |
commit | 59c6642f2a20688b8ed42605aacc925f27a55e57 (patch) | |
tree | 2c2cdfb32ba4f23b8460f1ac11d4982bbdfbcd43 /modules | |
parent | a7937fe54cd2c1f407a529e46e2708aea5ce7243 (diff) |
Add missing packed scene cache clear inside `GDScriptCache::clear()`
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_cache.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 699ce67933..1df7757082 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -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(); |