Skip to content
Snippets Groups Projects
Commit 14b25bcc authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Added the spacebar search operator to DMenu, as well as changing the toggle...

Added the spacebar search operator to DMenu, as well as changing the toggle object/editmode some more so that when you are in neither object or editmode, then you can choose which one to go to.
parent aa171c4c
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,9 @@ class VIEW3D_MT_Dynamic_Menu(bpy.types.Menu):
layout.operator_context = 'INVOKE_REGION_WIN'
ob = context
#Search Block
layout.operator("wm.search_menu", text="Search", icon='VIEWZOOM')
layout.separator()
if ob.mode == 'OBJECT':
#Add block
layout.menu("INFO_MT_mesh_add", text="Add Mesh", icon='OUTLINER_OB_MESH')
......@@ -161,7 +164,7 @@ class VIEW3D_MT_Dynamic_Menu(bpy.types.Menu):
#toggle Editmode
if ob.mode != 'EDIT_MESH':
layout.operator("object.editmode_toggle", text="Enter Edit Mode", icon='EDITMODE_HLT')
else:
if ob.mode != 'OBJECT':
layout.operator("object.editmode_toggle", text="Enter Object Mode", icon = 'OBJECT_DATAMODE')
class VIEW3D_MT_selectS(bpy.types.Menu):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment