From 7adb0d77cc5dbe0beaa05c9aac0f5c16f2b79775 Mon Sep 17 00:00:00 2001 From: George Marques Date: Wed, 10 Jun 2020 18:15:09 -0300 Subject: Add GDScript cache singleton --- modules/gdscript/gdscript.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdscript/gdscript.cpp') diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index f2752a7539..65cd791ad9 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -40,6 +40,7 @@ #include "core/os/os.h" #include "core/project_settings.h" #include "gdscript_analyzer.h" +#include "gdscript_cache.h" #include "gdscript_compiler.h" #include "gdscript_parser.h" @@ -1040,6 +1041,8 @@ GDScript::~GDScript() { memdelete(E->get()); } + GDScriptCache::remove_script(get_path()); + _save_orphaned_subclasses(); #ifdef DEBUG_ENABLED -- cgit v1.2.3