Attract: prevent rare error in ATTRACT_OT_open_meta_blendfile

This commit is contained in:
Sybren A. Stüvel 2021-11-19 15:46:19 +01:00
parent 9d7f9a979e
commit 6718e1646f

View File

@ -668,6 +668,8 @@ class ATTRACT_OT_open_meta_blendfile(AttractOperatorMixin, Operator):
@classmethod
def poll(cls, context):
if context.selected_sequences is None:
return False
return bool(
any(cls.filename_from_metadata(s) for s in context.selected_sequences)
)