Prevent errors when there is no sequencer in the current scene

This commit is contained in:
2016-11-04 17:47:27 +01:00
parent 900068a6f5
commit 115eea82c6

View File

@@ -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():