Add GDScript cache singleton
This commit is contained in:
parent
886732ac2b
commit
7adb0d77cc
4 changed files with 336 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue