mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #151942: VSE: Sound crossfade fails if metastrip contents selected
Simply ensure that the operator only considers strips in the current metastrip level with `strips` instead of `strips_all`. Another fix alternative is to modify metastrip selection logic, but that's a change that should be weighed separately. Also do the same for the deinterlace operator. Pull Request: https://projects.blender.org/blender/blender/pulls/151952
This commit is contained in:
parent
fd2efd3b05
commit
a8301c0968
1 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ class SequencerCrossfadeSounds(Operator):
|
|||
scene = context.sequencer_scene
|
||||
strip1 = None
|
||||
strip2 = None
|
||||
for strip in scene.sequence_editor.strips_all:
|
||||
for strip in scene.sequence_editor.strips:
|
||||
if strip.select and strip.type == 'SOUND':
|
||||
if strip1 is None:
|
||||
strip1 = strip
|
||||
|
|
@ -133,7 +133,7 @@ class SequencerDeinterlaceSelectedMovies(Operator):
|
|||
|
||||
def execute(self, context):
|
||||
scene = context.sequencer_scene
|
||||
for strip in scene.sequence_editor.strips_all:
|
||||
for strip in scene.sequence_editor.strips:
|
||||
if strip.select and strip.type == 'MOVIE':
|
||||
strip.use_deinterlace = True
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ class SequencerFadesClear(Operator):
|
|||
fcurve_map = {
|
||||
curve.data_path: curve
|
||||
for curve in fcurves
|
||||
if curve.data_path.startswith("sequence_editor.strips_all")
|
||||
if curve.data_path.startswith("sequence_editor.strips")
|
||||
}
|
||||
for strip in context.selected_strips:
|
||||
for animated_property in _animated_properties_get(strip):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue