remove the poll function from import/export templates
This commit is contained in:
parent
0de1ed5787
commit
1142a504cb
@ -46,10 +46,6 @@ class ExportSomeData(Operator, ExportHelper):
|
||||
default='OPT_A',
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return context.active_object is not None
|
||||
|
||||
def execute(self, context):
|
||||
return write_some_data(context, self.filepath, self.use_setting)
|
||||
|
||||
|
@ -49,10 +49,6 @@ class ImportSomeData(Operator, ImportHelper):
|
||||
default='OPT_A',
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return context.active_object is not None
|
||||
|
||||
def execute(self, context):
|
||||
return read_some_data(context, self.filepath, self.use_setting)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user