[Bf-blender-cvs] [b3098c30a69] blender2.8: UI: add workspace cycling menu items
Campbell Barton
noreply at git.blender.org
Mon Jul 2 14:30:32 CEST 2018
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":
More information about the Bf-blender-cvs
mailing list