Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-11-29 11:07:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-29 11:07:00 +0300
commit068b61e5e923f4619be927bf0a08f9afcaa78d9b (patch)
tree6b3c8b298c03324655a72336557366205e18f611 /release/scripts/startup/bl_ui/space_graph.py
parent9f2bc87e57ee022cf97f8e274e9364323e7b88c2 (diff)
UI: menu items for Ctrl-Tab dope sheet/graph switching
Make this shortcut discoverable.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_graph.py')
-rw-r--r--release/scripts/startup/bl_ui/space_graph.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index d668bb7ec25..ea418f37d47 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -148,6 +148,12 @@ class GRAPH_MT_view(Menu):
layout.operator("graph.view_selected")
layout.operator("graph.view_frame")
+ # Add this to show key-binding (reverse action in dope-sheet).
+ layout.separator()
+ props = layout.operator("wm.context_set_enum", text="Toggle Dope Sheet")
+ props.data_path = "area.type"
+ props.value = 'DOPESHEET_EDITOR'
+
layout.separator()
layout.menu("INFO_MT_area")