Fix some DEFVALs to use the right type

- Use `StringName()` in DEFVAL for StringNames.
- Use `Variant()` in DEFVAL for Variants.
This commit is contained in:
Raul Santos 2024-01-30 21:03:28 +01:00
parent 16d61427ca
commit 5ba92e5a57
No known key found for this signature in database
GPG key ID: B532473AE3A803E4
27 changed files with 343 additions and 74 deletions

View file

@ -245,6 +245,10 @@ protected:
void _notification(int p_what);
static void _bind_methods();
#ifndef DISABLE_DEPRECATED
static void _bind_compatibility_methods();
#endif
bool _set(const StringName &p_name, const Variant &p_value);
bool _get(const StringName &p_name, Variant &r_ret) const;
void _get_property_list(List<PropertyInfo> *p_list) const;