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:
parent
077bd1abdb
commit
1dea802932
@ -640,8 +640,7 @@ class ATTRACT_OT_open_meta_blendfile(AttractOperatorMixin, Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return AttractOperatorMixin.poll(context) and \
|
return bool(any(cls.filename_from_metadata(s) for s in context.selected_sequences))
|
||||||
bool(any(cls.filename_from_metadata(s) for s in context.selected_sequences))
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def filename_from_metadata(strip):
|
def filename_from_metadata(strip):
|
||||||
|
Reference in New Issue
Block a user