Merge pull request #52492 from raulsntos/fix-csharp-array-properties

Fix properties arrays in C# bindings generator
This commit is contained in:
Ignacio Roldán Etcheverry 2021-09-09 20:38:58 +02:00 committed by GitHub
commit 6679be45aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2610,7 +2610,7 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
Map<StringName, StringName> accessor_methods;
for (const PropertyInfo &property : property_list) {
if (property.usage & PROPERTY_USAGE_GROUP || property.usage & PROPERTY_USAGE_SUBGROUP || property.usage & PROPERTY_USAGE_CATEGORY) {
if (property.usage & PROPERTY_USAGE_GROUP || property.usage & PROPERTY_USAGE_SUBGROUP || property.usage & PROPERTY_USAGE_CATEGORY || (property.type == Variant::NIL && property.usage & PROPERTY_USAGE_ARRAY)) {
continue;
}