Browse Source

Add clearing of `static_gdscript_cache` to `GDScriptCache`

(cherry picked from commit db5e843e468b7a69aeaebdf1e4159d2741b660fd)
Mikael Hermansson 4 months ago
parent
commit
d7366d5929
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdscript/gdscript_cache.cpp

+ 1 - 0
modules/gdscript/gdscript_cache.cpp

@@ -485,6 +485,7 @@ void GDScriptCache::clear() {
 	parser_map_refs.clear();
 	parser_map_refs.clear();
 	singleton->shallow_gdscript_cache.clear();
 	singleton->shallow_gdscript_cache.clear();
 	singleton->full_gdscript_cache.clear();
 	singleton->full_gdscript_cache.clear();
+	singleton->static_gdscript_cache.clear();
 }
 }
 
 
 GDScriptCache::GDScriptCache() {
 GDScriptCache::GDScriptCache() {