- export_lods = bpy.props.BoolProperty(name="Export LoDs", description="Export all levels of detail", default=True)
- use_textures = bpy.props.BoolProperty(name="Use textures", description="Use textures in the exported object", default=True)
+ export_lods: bpy.props.BoolProperty(name="Export LoDs", description="Export all levels of detail", default=True)
+ use_textures: bpy.props.BoolProperty(name="Use textures", description="Use textures in the exported object", default=True)
+
+ def check(self, context):
+ ext_changed = self.set_extension(".mdc" if self.collection else ".object")
+ super_result = super().check(context)
+ return ext_changed or super_result