Cleanup: pass context to draw method instead of accessing from bpy
Allows for context overrides/mocking.
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user