[Bf-blender-cvs] [06994e954b9] blender2.8: UI: add screen split to window context menu

Campbell Barton noreply at git.blender.org
Mon Jul 2 12:47:45 CEST 2018


Commit: 06994e954b994ce50d8813b68b08656ff9b91ae4
Author: Campbell Barton
Date:   Mon Jul 2 12:46:51 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB06994e954b994ce50d8813b68b08656ff9b91ae4

UI: add screen split to window context menu

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

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 f54a5903801..94a8bef0b88 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -611,6 +611,11 @@ class TOPBAR_MT_window_specials(Menu):
 
         layout.separator()
 
+        layout.operator("screen.area_split", text="Horizontal Split").direction = 'HORIZONTAL'
+        layout.operator("screen.area_split", text="Vertical Split").direction = 'VERTICAL'
+
+        layout.separator()
+
         layout.operator("screen.userpref_show", text="User Preferences...", icon='PREFERENCES')



More information about the Bf-blender-cvs mailing list