diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-08-19 13:33:23 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-08-23 14:09:57 +0300 |
commit | 833bc7039997435f676adc5b0c5150a264c543b8 (patch) | |
tree | ea88fdd7a171821851b6439dac940598b4a53f47 /release/scripts/startup/bl_operators | |
parent | f18e53745151eee946dcc01bc4b526994971daef (diff) |
Fix T79874: VSE - error clearing fades without animation data
Maniphest Tasks: T79874
Differential Revision: https://developer.blender.org/D8624
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/sequencer.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py index a332f938afd..9b15ccf167b 100644 --- a/release/scripts/startup/bl_operators/sequencer.py +++ b/release/scripts/startup/bl_operators/sequencer.py @@ -151,7 +151,13 @@ class SequencerFadesClear(Operator): return context.scene and context.scene.sequence_editor and context.scene.sequence_editor.active_strip def execute(self, context): - fcurves = context.scene.animation_data.action.fcurves + animation_data = context.scene.animation_data + if animation_data is None: + return {'CANCELLED'} + action = animation_data.action + if action is None: + return {'CANCELLED'} + fcurves = action.fcurves fcurve_map = { curve.data_path: curve for curve in fcurves |