Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-01 20:35:14 +0300
committerHans Goudey <h.goudey@me.com>2020-09-01 20:38:05 +0300
commitbaca8611e5fe4b3dcd6f5065fb125bc0a9d65934 (patch)
treebb1230387cd53b15f9621f10c4d0e5e2050b5580 /release/scripts/startup/bl_operators/sequencer.py
parent31705201dddebf7e3be5c4533b89f380aad1ede1 (diff)
parent2930d4fcea405985f2212c5f28c061af7c4849f8 (diff)
Merge branch 'master' into active-fcurve-keyframeactive-fcurve-keyframe
Diffstat (limited to 'release/scripts/startup/bl_operators/sequencer.py')
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py8
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