summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-12-07 22:22:54 +0100
committerGitHub <noreply@github.com>2022-12-07 22:22:54 +0100
commit5852efedbd5a09d6769cb99f76dd2fb3bfa1c16a (patch)
tree2c2cdfb32ba4f23b8460f1ac11d4982bbdfbcd43 /modules
parenta7937fe54cd2c1f407a529e46e2708aea5ce7243 (diff)
parent59c6642f2a20688b8ed42605aacc925f27a55e57 (diff)
Merge pull request #69740 from adamscott/add-missing-gdscript_cache-scene-cache-clear
Add missing packed scene cache clear inside `GDScriptCache::clear()`
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_cache.cpp5
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();