Cleanup: pass context to draw method instead of accessing from bpy

Allows for context overrides/mocking.
This commit is contained in:
Campbell Barton
2019-03-13 11:52:54 +11:00
parent e24de17b8d
commit 16b6b03969
5 changed files with 6 additions and 7 deletions

View File

@@ -277,7 +277,7 @@ class SEQUENCER_MT_marker(Menu):
is_sequencer_view = st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}
from .space_time import marker_menu_generic
marker_menu_generic(layout)
marker_menu_generic(layout, context)
if is_sequencer_view:
layout.prop(st, "use_marker_sync")