Browse Source

Add clearing of `static_gdscript_cache` to `GDScriptCache`

Mikael Hermansson 4 months ago
parent
commit
db5e843e46
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();
 	singleton->shallow_gdscript_cache.clear();
 	singleton->full_gdscript_cache.clear();
+	singleton->static_gdscript_cache.clear();
 }
 
 GDScriptCache::GDScriptCache() {