Commit: 06278f03dd3186066572ba77e2f08fb8aeed36a4
Author: Antony Riakiotakis
Date:   Tue Jul 29 12:48:24 2014 +0200
Branches: pie-menus
https://developer.blender.org/rB06278f03dd3186066572ba77e2f08fb8aeed36a4

Bring back good ole regular menu here so people can use number
accelerators as they are used to.

===================================================================

M       release/scripts/startup/bl_ui/space_view3d.py
M       source/blender/editors/mesh/mesh_ops.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py 
b/release/scripts/startup/bl_ui/space_view3d.py
index 2b337d5..87d5fd0 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2166,10 +2166,9 @@ class VIEW3D_MT_edit_mesh_select_mode(Menu):
         layout = self.layout
 
         layout.operator_context = 'INVOKE_REGION_WIN'
-        pie = layout.menu_pie()
-        pie.operator("mesh.select_mode", text="Vertex", icon='VERTEXSEL').type 
= 'VERT'
-        pie.operator("mesh.select_mode", text="Edge", icon='EDGESEL').type = 
'EDGE'
-        pie.operator("mesh.select_mode", text="Face", icon='FACESEL').type = 
'FACE'
+        layout.operator("mesh.select_mode", text="Vertex", 
icon='VERTEXSEL').type = 'VERT'
+        layout.operator("mesh.select_mode", text="Edge", icon='EDGESEL').type 
= 'EDGE'
+        layout.operator("mesh.select_mode", text="Face", icon='FACESEL').type 
= 'FACE'
 
 
 class VIEW3D_MT_edit_mesh_extrude(Menu):
diff --git a/source/blender/editors/mesh/mesh_ops.c 
b/source/blender/editors/mesh/mesh_ops.c
index abf4d88..fbd8522 100644
--- a/source/blender/editors/mesh/mesh_ops.c
+++ b/source/blender/editors/mesh/mesh_ops.c
@@ -349,7 +349,7 @@ void ED_keymap_mesh(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "MESH_OT_select_similar", GKEY, KM_PRESS, 
KM_SHIFT, 0);
        
        /* selection mode */
-       WM_keymap_add_pie_menu(keymap, "VIEW3D_MT_edit_mesh_select_mode", 
TABKEY, KM_PRESS, KM_CTRL, 0, true);
+       WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_select_mode", TABKEY, 
KM_PRESS, KM_CTRL, 0);
        
        /* hide */
        kmi = WM_keymap_add_item(keymap, "MESH_OT_hide", HKEY, KM_PRESS, 0, 0);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to