Attract: prevent rare error in ATTRACT_OT_open_meta_blendfile
This commit is contained in:
parent
9d7f9a979e
commit
6718e1646f
@ -668,6 +668,8 @@ class ATTRACT_OT_open_meta_blendfile(AttractOperatorMixin, Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
if context.selected_sequences is None:
|
||||||
|
return False
|
||||||
return bool(
|
return bool(
|
||||||
any(cls.filename_from_metadata(s) for s in context.selected_sequences)
|
any(cls.filename_from_metadata(s) for s in context.selected_sequences)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user