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:
Sergey Sharybin
2011-05-01 07:39:21 +00:00
parent 22c2aef77c
commit 05538a7c54
2 changed files with 1 additions and 4 deletions

View File

@@ -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)