[Bf-blender-cvs] [833bc703999] master: Fix T79874: VSE - error clearing fades without animation data
Philipp Oeser
noreply at git.blender.org
Sun Aug 23 13:14:25 CEST 2020
Commit: 833bc7039997435f676adc5b0c5150a264c543b8
Author: Philipp Oeser
Date: Wed Aug 19 12:33:23 2020 +0200
Branches: master
https://developer.blender.org/rB833bc7039997435f676adc5b0c5150a264c543b8
Fix T79874: VSE - error clearing fades without animation data
Maniphest Tasks: T79874
Differential Revision: https://developer.blender.org/D8624
===================================================================
M release/scripts/startup/bl_operators/sequencer.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list