[Bf-blender-cvs] [ba1f292b32b] blender2.8: UI: add operator search to edit-menu

Campbell Barton noreply at git.blender.org
Sat Jun 30 10:07:10 CEST 2018


Commit: ba1f292b32b6829cfc24dc2a3d126b104e65f63d
Author: Campbell Barton
Date:   Sat Jun 30 10:04:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBba1f292b32b6829cfc24dc2a3d126b104e65f63d

UI: add operator search to edit-menu

While this is most useful to access from an active-region,
it's not discoverable without a menu entry.

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

M	release/scripts/startup/bl_ui/space_topbar.py

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

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index ece8666d398..19516fda301 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -499,6 +499,10 @@ class INFO_MT_edit(Menu):
 
         layout.separator()
 
+        layout.operator("wm.search_menu", text="Operator Search...")
+
+        layout.separator()
+
         # Should move elsewhere (impacts outliner & 3D view).
         tool_settings = context.tool_settings
         layout.prop(tool_settings, "lock_object_mode")



More information about the Bf-blender-cvs mailing list