GDScriptCache: Clear abandoned parser refs
This commit is contained in:
parent
8e36f98ea5
commit
86b23d0420
2 changed files with 34 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ private:
|
|||
String path;
|
||||
uint32_t source_hash = 0;
|
||||
bool clearing = false;
|
||||
bool abandoned = false;
|
||||
|
||||
friend class GDScriptCache;
|
||||
friend class GDScript;
|
||||
|
|
@ -79,6 +80,7 @@ public:
|
|||
class GDScriptCache {
|
||||
// String key is full path.
|
||||
HashMap<String, GDScriptParserRef *> parser_map;
|
||||
HashMap<String, Vector<ObjectID>> abandoned_parser_map;
|
||||
HashMap<String, Ref<GDScript>> shallow_gdscript_cache;
|
||||
HashMap<String, Ref<GDScript>> full_gdscript_cache;
|
||||
HashMap<String, Ref<GDScript>> static_gdscript_cache;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue