[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36404] trunk/blender: Fix #27239: "A" menu in Sculptmode fails
Sergey Sharybin
g.ulairi at gmail.com
Sun May 1 09:39:22 CEST 2011
Revision: 36404
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36404
Author: nazgul
Date: 2011-05-01 07:39:21 +0000 (Sun, 01 May 2011)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/wm.py
trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py 2011-05-01 06:34:40 UTC (rev 36403)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py 2011-05-01 07:39:21 UTC (rev 36404)
@@ -395,7 +395,7 @@
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)
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c 2011-05-01 06:34:40 UTC (rev 36403)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c 2011-05-01 07:39:21 UTC (rev 36404)
@@ -517,9 +517,6 @@
kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", RKEY, KM_PRESS, 0, 0);
RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.use_rake");
- kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", AKEY, KM_PRESS, KM_SHIFT, 0);
- RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.use_airbrush");
-
/* Vertex Paint mode */
keymap= WM_keymap_find(keyconf, "Vertex Paint", 0, 0);
keymap->poll= vertex_paint_mode_poll;
More information about the Bf-blender-cvs
mailing list