Added poll operator to the ASE exporter

This commit is contained in:
Colin Basnett
2024-07-22 01:28:59 -07:00
parent 59be7f3d01
commit 0dd55e46a7

View File

@@ -100,6 +100,13 @@ class ASE_OT_export(Operator, ExportHelper):
default='EVALUATED'
)
@classmethod
def poll(cls, context):
if not any(x.type == 'MESH' for x in context.selected_objects):
cls.poll_message_set('At least one mesh must be selected')
return False
return True
def draw(self, context):
layout = self.layout