summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2023-07-26 15:31:15 -0500
committerGitHub <noreply@github.com>2023-07-26 15:31:15 -0500
commit1d49bef0966aed58249aaed2c468306493e884bf (patch)
tree15c53f66edef46597fd7a52bf4fc97d42718d5dc /include/godot_cpp/core
parentd15550fdee5ce28c0e6aac8745fe515e849eea06 (diff)
parentbaf0b9e0f73d10dfab07189fc12c4ed0906eedf0 (diff)
downloadredot-cpp-1d49bef0966aed58249aaed2c468306493e884bf.tar.gz
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).
Diffstat (limited to 'include/godot_cpp/core')
-rw-r--r--include/godot_cpp/core/class_db.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/core/class_db.hpp b/include/godot_cpp/core/class_db.hpp
index 7026a30..0802a45 100644
--- a/include/godot_cpp/core/class_db.hpp
+++ b/include/godot_cpp/core/class_db.hpp
@@ -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;