Merge pull request #1184 from Zylann/fix_get_property_list_calling_parent

Don't call parent _get_property_list when a class doesn't define it (for internal binding).
This commit is contained in:
David Snopek
2023-07-26 15:31:15 -05:00
committed by GitHub
3 changed files with 58 additions and 30 deletions

View File

@@ -179,7 +179,7 @@ void ClassDB::_register_class(bool p_virtual) {
is_abstract, // GDExtensionBool is_abstract;
T::set_bind, // GDExtensionClassSet set_func;
T::get_bind, // GDExtensionClassGet get_func;
T::get_property_list_bind, // GDExtensionClassGetPropertyList get_property_list_func;
T::has_get_property_list() ? T::get_property_list_bind : nullptr, // GDExtensionClassGetPropertyList get_property_list_func;
T::free_property_list_bind, // GDExtensionClassFreePropertyList free_property_list_func;
T::property_can_revert_bind, // GDExtensionClassPropertyCanRevert property_can_revert_func;
T::property_get_revert_bind, // GDExtensionClassPropertyGetRevert property_get_revert_func;