Prevent errors when there is no sequencer in the current scene
This commit is contained in:
parent
900068a6f5
commit
115eea82c6
@ -130,6 +130,9 @@ def shot_id_use(strips):
|
|||||||
def compute_strip_conflicts(scene):
|
def compute_strip_conflicts(scene):
|
||||||
"""Sets the strip property atc_object_id_conflict for each strip."""
|
"""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
|
tag_redraw = False
|
||||||
ids_in_use = shot_id_use(scene.sequence_editor.sequences_all)
|
ids_in_use = shot_id_use(scene.sequence_editor.sequences_all)
|
||||||
for strips in ids_in_use.values():
|
for strips in ids_in_use.values():
|
||||||
|
Reference in New Issue
Block a user