diff options
author | George Marques <george@gmarqu.es> | 2020-06-10 18:15:09 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-07-20 11:38:39 -0300 |
commit | 7adb0d77cc5dbe0beaa05c9aac0f5c16f2b79775 (patch) | |
tree | fcccf467b84da2d5a4df3e20782edc253fccf03b /modules/gdscript/gdscript.cpp | |
parent | 886732ac2b131de555494f292cbb7c5058b40cd9 (diff) | |
download | redot-engine-7adb0d77cc5dbe0beaa05c9aac0f5c16f2b79775.tar.gz |
Add GDScript cache singleton
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |