+ def invoke(self, context, event):
+ self.filepath = context.scene.name+".scene"
+ return super().invoke(context, event)
+
+ def check(self, context):
+ ext_changed = self.set_extension(".mdc" if self.collection else ".scene")
+ super_result = super().check(context)
+ return ext_changed or super_result
+