diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-24 08:16:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-24 08:16:53 +0300 |
commit | 8d50a3e19e025ef470132e7edadd7b180db833f5 (patch) | |
tree | 4ce7f4cc4ad454961b7027dd3dfa3c1f24fa944c /release/scripts/startup | |
parent | d4c0c40015111f335dfaca90ed1b8741a6ca8f76 (diff) |
Fix T85930: Custom Property Error: Wrong Subtype
Regression in 08dbc4f996e4e95f3ab64f7bb3e1193700c585f5
Unfortunately lambda functions don't work with postponed annotations.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 3b94a964148..b14f9c05210 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -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 |