Split axis selection functionality from TransformMixin
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user