Fix T85930: Custom Property Error: Wrong Subtype
Regression in 08dbc4f996
Unfortunately lambda functions don't work with postponed annotations.
This commit is contained in:
parent
d4c0c40015
commit
8d50a3e19e
Notes:
blender-bot
2023-09-08 04:55:43 +02:00
Referenced by commit 81178eca7c
, Revert removal of lambda usage for Python RNA callbacks
Referenced by issue #85930, Custom Property Error : Wrong Subtype
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue