Split axis selection functionality from TransformMixin

This commit is contained in:
Colin Basnett
2025-08-10 22:12:46 -07:00
parent 84863d9de4
commit 8d2f46c2b1

View File

@@ -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'),