You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
fix of reading property list from custom nodes imported from GDExtension when inheritance between custom nodes is used
This commit is contained in:
@@ -624,8 +624,12 @@ void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_extension) {
|
if (_extension) {
|
||||||
p_list->push_back(PropertyInfo(Variant::NIL, _extension->class_name, PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_CATEGORY));
|
const ObjectNativeExtension *current_extension = _extension;
|
||||||
ClassDB::get_property_list(_extension->class_name, p_list, true, this);
|
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) {
|
if (_extension && _extension->get_property_list) {
|
||||||
|
|||||||
Reference in New Issue
Block a user