Commit: b3098c30a6948282dd4317e63cf0dab95fc4730a
Author: Campbell Barton
Date:   Mon Jul 2 14:26:31 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb3098c30a6948282dd4317e63cf0dab95fc4730a

UI: add workspace cycling menu items

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

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 94a8bef0b88..84fb386efd5 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -525,6 +525,11 @@ class INFO_MT_window(Menu):
 
         layout.separator()
 
+        layout.operator("screen.workspace_cycle", text="Next 
Workspace").direction = 'NEXT'
+        layout.operator("screen.workspace_cycle", text="Previous 
Workspace").direction = 'PREV'
+
+        layout.separator()
+
         layout.operator("screen.screenshot")
 
         if sys.platform[:3] == "win":

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

Reply via email to