Fix #108129: exception editing custom properties

Regression in [0], caused by the sub-type enum not containing NONE.

[0]: 6e2721da30
This commit is contained in:
Campbell Barton
2023-05-23 10:46:57 +10:00
parent 7d682fa107
commit 93ca0444f3
+5 -1
View File
@@ -1419,7 +1419,11 @@ class WM_OT_properties_edit(Operator):
return rna_custom_property_subtype_number_items
case 'FLOAT_ARRAY':
return rna_custom_property_subtype_vector_items
return ()
case _:
# Needed so 'NONE' can always be assigned.
return (
rna_custom_property_subtype_none_item,
)
def property_type_update_cb(self, context):
self.subtype = 'NONE'