Skip to content

Commit

Permalink
fix of reading property list from custom nodes imported from GDExtens…
Browse files Browse the repository at this point in the history
…ion when inheritance between custom nodes is used
  • Loading branch information
elmordo committed Mar 2, 2022
1 parent e6f00a0 commit c4770e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/object/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,12 @@ void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) cons
}

if (_extension) {
p_list->push_back(PropertyInfo(Variant::NIL, _extension->class_name, PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_CATEGORY));
ClassDB::get_property_list(_extension->class_name, p_list, true, this);
const ObjectNativeExtension *current_extension = _extension;
while (current_extension) {
p_list->push_back(PropertyInfo(Variant::NIL, current_extension->class_name, PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_CATEGORY));
ClassDB::get_property_list(current_extension->class_name, p_list, true, this);
current_extension = current_extension->parent;
}
}

if (_extension && _extension->get_property_list) {
Expand Down

0 comments on commit c4770e1

Please sign in to comment.