Fix: VSE: Mirror operations invoking instead of immediately executing
Mirror menu added in #142506 forgot to account for this case. To fix, ensure that only interactive mirror invokes.
This commit is contained in:
committed by
John Kiril Swenson
parent
996492515d
commit
a4b7b7ed3b
@@ -1004,13 +1004,16 @@ class SEQUENCER_MT_strip_mirror(Menu):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.operator_context = 'INVOKE_REGION_PREVIEW'
|
||||
|
||||
col = layout.column()
|
||||
col.operator_context = 'INVOKE_REGION_PREVIEW'
|
||||
col.operator("transform.mirror", text="Interactive Mirror")
|
||||
|
||||
col.separator()
|
||||
|
||||
# Only interactive mirror should invoke the modal, all others should immediately run.
|
||||
col.operator_context = 'EXEC_REGION_PREVIEW'
|
||||
|
||||
for (space_name, space_id) in (("Global", 'GLOBAL'), ("Local", 'LOCAL')):
|
||||
for axis_index, axis_name in enumerate("XY"):
|
||||
props = col.operator(
|
||||
|
||||
Reference in New Issue
Block a user