Fix #27239: "A" menu in Sculptmode fails
Simple incorrect property accessing fix (enum_items vs. items). Additional change: removed hotkey to toggle airbrush in sculpt mode TODO: incorrect hotkeys are shown in stroke method menu, but it's how hotkey string detecting works now.
This commit is contained in:
@@ -395,7 +395,7 @@ class WM_MT_context_menu_enum(bpy.types.Menu):
|
||||
base_path, prop_string = data_path.rsplit(".", 1)
|
||||
value_base = context_path_validate(context, base_path)
|
||||
|
||||
values = [(i.name, i.identifier) for i in value_base.bl_rna.properties[prop_string].items]
|
||||
values = [(i.name, i.identifier) for i in value_base.bl_rna.properties[prop_string].enum_items]
|
||||
|
||||
for name, identifier in values:
|
||||
prop = self.layout.operator("wm.context_set_enum", text=name)
|
||||
|
Reference in New Issue
Block a user