Fix T85930: Custom Property Error: Wrong Subtype
Regression in 08dbc4f996
Unfortunately lambda functions don't work with postponed annotations.
This commit is contained in:
@@ -1220,11 +1220,14 @@ class WM_OT_properties_edit(Operator):
|
||||
)
|
||||
subtype: EnumProperty(
|
||||
name="Subtype",
|
||||
items=lambda self, _context: WM_OT_properties_edit.subtype_items,
|
||||
items=WM_OT_properties_edit._subtype_items_fn,
|
||||
)
|
||||
|
||||
subtype_items = rna_vector_subtype_items
|
||||
|
||||
def _subtype_items_fn(_self, _context):
|
||||
return WM_OT_properties_edit.subtype_items
|
||||
|
||||
def _init_subtype(self, prop_type, is_array, subtype):
|
||||
subtype = subtype or 'NONE'
|
||||
subtype_items = rna_vector_subtype_items
|
||||
|
||||
Reference in New Issue
Block a user