summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-08-31 10:48:45 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2021-09-07 09:51:28 +0200
commit4bd7700e89f4476a3b2c76e7bed4263a111b3c09 (patch)
tree4778e08bd64f9e2c7cbe1414a1acd1237b8f53ee /tests
parentb0b30aaf41191ccbfdc8786cb79a76efb16d1459 (diff)
Implement properties arrays in the Inspector.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_class_db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_class_db.h b/tests/test_class_db.h
index ea680da5d6..20397bb144 100644
--- a/tests/test_class_db.h
+++ b/tests/test_class_db.h
@@ -527,7 +527,7 @@ void add_exposed_classes(Context &r_context) {
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;
}