From 115eea82c669d5117d43344b4b80b71a2ea938e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 4 Nov 2016 17:47:27 +0100 Subject: [PATCH] Prevent errors when there is no sequencer in the current scene --- blender_cloud/attract/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blender_cloud/attract/__init__.py b/blender_cloud/attract/__init__.py index bbc26d0..6b4ee16 100644 --- a/blender_cloud/attract/__init__.py +++ b/blender_cloud/attract/__init__.py @@ -130,6 +130,9 @@ def shot_id_use(strips): def compute_strip_conflicts(scene): """Sets the strip property atc_object_id_conflict for each strip.""" + if not scene or not scene.sequence_editor or not scene.sequence_editor.sequences_all: + return + tag_redraw = False ids_in_use = shot_id_use(scene.sequence_editor.sequences_all) for strips in ids_in_use.values():