diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-23 02:31:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-23 02:31:08 +0300 |
commit | a083ddf49b9f4415ce9a4b5d6f4605deec3d38c8 (patch) | |
tree | 791a4b4276d2b9d60a6005de91cd2010bbd6c8d0 /release/scripts | |
parent | 52bdf522afcd27817cf38a8f5c972ce02d80acab (diff) |
Sequencer: correct fcurve map usage
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/sequencer.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py index 73a513829d8..78c1e3b2d8e 100644 --- a/release/scripts/startup/bl_operators/sequencer.py +++ b/release/scripts/startup/bl_operators/sequencer.py @@ -148,15 +148,14 @@ class SequencerFadesClear(Operator): def execute(self, context): fcurves = context.scene.animation_data.action.fcurves - + fcurve_map = { + curve.data_path: curve + for curve in fcurves + if curve.data_path.startswith("sequence_editor.sequences_all") + } for sequence in context.selected_sequences: animated_property = "volume" if hasattr(sequence, "volume") else "blend_alpha" data_path = sequence.path_from_id() + "." + animated_property - fcurve_map = { - curve.data_path: curve - for curve in fcurves - if curve.data_path.startswith("sequence_editor.sequences_all") - } curve = fcurve_map.get(data_path) if curve: fcurves.remove(curve) |