Attract doesn't have to be active to use ATTRACT_OT_open_meta_blendfile

It is pretty much independent of Attract.
This commit is contained in:
Sybren A. Stüvel 2019-06-21 14:29:07 +02:00
parent 077bd1abdb
commit 1dea802932

View File

@ -640,8 +640,7 @@ class ATTRACT_OT_open_meta_blendfile(AttractOperatorMixin, Operator):
@classmethod
def poll(cls, context):
return AttractOperatorMixin.poll(context) and \
bool(any(cls.filename_from_metadata(s) for s in context.selected_sequences))
return bool(any(cls.filename_from_metadata(s) for s in context.selected_sequences))
@staticmethod
def filename_from_metadata(strip):