瀏覽代碼

Add clearing of `static_gdscript_cache` to `GDScriptCache`

(cherry picked from commit db5e843e468b7a69aeaebdf1e4159d2741b660fd)
Mikael Hermansson 4 月之前
父節點
當前提交
d7366d5929
共有 1 個文件被更改,包括 1 次插入0 次删除
  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() {