From 8d2f46c2b11278b7408b162429c9614e7e0476cf Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Sun, 10 Aug 2025 22:12:46 -0700 Subject: [PATCH] Split axis selection functionality from TransformMixin --- io_scene_psk_psa/shared/types.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/io_scene_psk_psa/shared/types.py b/io_scene_psk_psa/shared/types.py index 9f4b91e..ac497da 100644 --- a/io_scene_psk_psa/shared/types.py +++ b/io_scene_psk_psa/shared/types.py @@ -94,14 +94,7 @@ def up_axis_update(self, __context): self.forward_axis = next((axis for axis in axis_identifiers if axis != self.up_axis), 'X') -class TransformMixin: - scale: FloatProperty( - name='Scale', - default=1.0, - description='Scale factor to apply to all location data', - soft_min=0.0, - soft_max=100.0 - ) +class AxisMixin: forward_axis: EnumProperty( name='Forward', items=forward_items, @@ -116,6 +109,16 @@ class TransformMixin: ) +class TransformMixin(AxisMixin): + scale: FloatProperty( + name='Scale', + default=1.0, + description='Scale factor to apply to all location data', + soft_min=0.0, + soft_max=100.0 + ) + + export_space_items = [ ('WORLD', 'World', 'Export in world space'), ('ARMATURE', 'Armature', 'Export the local space of the armature object'),