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:
authorAlessio Monti di Sopra <a.monti>2019-11-30 09:03:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-30 09:08:04 +0300
commitdc87d09b8b3249898e0f0d301fa22f03cff9d6d5 (patch)
tree44b22d9d1046dc30c7ae340eb544712630b7cd6b /release/scripts/startup/bl_ui/space_dopesheet.py
parentf478fef9d6b0609f4bb60fd98e9292b60927b80e (diff)
UI: allow to hide markers region per editor
Instead of having the option to show marker lines, make the marker region optional. - Added a Show Markers entry in the View menu of the animation editors. - If the markers region is not active then the Marker menu gets hidden. - Removed marker menu from the driver editor and don't allow to use marker operators.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_dopesheet.py')
-rw-r--r--release/scripts/startup/bl_ui/space_dopesheet.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index fac8ff238c0..3b498b834bf 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -288,7 +288,8 @@ class DOPESHEET_MT_editor_menus(Menu):
layout.menu("DOPESHEET_MT_view")
layout.menu("DOPESHEET_MT_select")
- layout.menu("DOPESHEET_MT_marker")
+ if st.show_markers:
+ layout.menu("DOPESHEET_MT_marker")
if st.mode == 'DOPESHEET' or (st.mode == 'ACTION' and st.action is not None):
layout.menu("DOPESHEET_MT_channel")
@@ -322,9 +323,12 @@ class DOPESHEET_MT_view(Menu):
layout.prop(st, "show_group_colors")
layout.prop(st, "show_interpolation")
layout.prop(st, "show_extremes")
- layout.prop(st, "show_marker_lines")
layout.prop(st, "use_auto_merge_keyframes")
+ layout.separator()
+ layout.prop(st, "show_markers")
+
+ layout.separator()
layout.prop(st, "show_seconds")
layout.prop(st, "show_locked_time")