Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit

This commit is contained in:
Yuri Rubinsky
2024-07-03 10:39:18 +03:00
parent 26d1577f39
commit af5fc8354b
13 changed files with 36 additions and 6 deletions

View File

@@ -42,6 +42,8 @@ class PropertyListHelper {
MethodBind *getter = nullptr;
};
static Vector<PropertyListHelper *> base_helpers;
String prefix;
MethodBind *array_length_getter = nullptr;
HashMap<String, Property> property_list;
@@ -53,6 +55,9 @@ class PropertyListHelper {
int _call_array_length_getter() const;
public:
static void clear_base_helpers();
static void register_base_helper(PropertyListHelper *p_helper);
void set_prefix(const String &p_prefix);
template <typename G>
void set_array_length_getter(G p_array_length_getter) {
@@ -83,7 +88,7 @@ public:
bool property_can_revert(const String &p_property) const;
bool property_get_revert(const String &p_property, Variant &r_value) const;
~PropertyListHelper();
void clear();
};
#endif // PROPERTY_LIST_HELPER_H