- external_tech = bpy.props.BoolProperty(name="External technique", description="Use an external technique specified in the object's properties", default=True)
-
- textures = bpy.props.EnumProperty(name="Textures", description="Export textures", default="REF",
- items=(("NONE", "None", "Ignore textures"),
- ("REF", "Referenced", "Reference external data"),
- ("INLINE", "Inline", "Embed textures in the object")))
-
- separate_mesh = bpy.props.BoolProperty(name="Separate mesh", description="Write mesh data into a separate file", default=False)
- shared_mesh = bpy.props.BoolProperty(name="Shared mesh", description="Use mesh name for mesh file to enable sharing", default=True)
- separate_tech = bpy.props.BoolProperty(name="Separate technique", description="Write technique data into a separate file", default=False)
- shared_tech = bpy.props.BoolProperty(name="Shared technique", description="Use material name for technique file to enable sharing", default=True)
-
- export_lods = bpy.props.BoolProperty(name="Export LoDs", description="Export all levels of detail", default=True)
+ def check(self, context):
+ ext_changed = self.set_extension(".mdc" if self.export_all and self.collection else ".anim")
+ super_result = super().check(context)
+ return ext_changed or super_result