Fix GDScriptCache to not remove scripts/scenes individually when clearing
This commit is contained in:
parent
e9c7140cfa
commit
ff544df926
2 changed files with 21 additions and 10 deletions
|
|
@ -87,7 +87,7 @@ class GDScriptCache {
|
|||
|
||||
static GDScriptCache *singleton;
|
||||
|
||||
bool destructing = false;
|
||||
bool cleared = false;
|
||||
|
||||
Mutex mutex;
|
||||
|
||||
|
|
@ -104,13 +104,6 @@ public:
|
|||
static Ref<PackedScene> get_packed_scene(const String &p_path, Error &r_error, const String &p_owner = "");
|
||||
static void clear_unreferenced_packed_scenes();
|
||||
|
||||
static bool is_destructing() {
|
||||
if (singleton == nullptr) {
|
||||
return true;
|
||||
}
|
||||
return singleton->destructing;
|
||||
};
|
||||
|
||||
static void clear();
|
||||
|
||||
GDScriptCache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue