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')
|
self.forward_axis = next((axis for axis in axis_identifiers if axis != self.up_axis), 'X')
|
||||||
|
|
||||||
|
|
||||||
class TransformMixin:
|
class 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
|
|
||||||
)
|
|
||||||
forward_axis: EnumProperty(
|
forward_axis: EnumProperty(
|
||||||
name='Forward',
|
name='Forward',
|
||||||
items=forward_items,
|
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 = [
|
export_space_items = [
|
||||||
('WORLD', 'World', 'Export in world space'),
|
('WORLD', 'World', 'Export in world space'),
|
||||||
('ARMATURE', 'Armature', 'Export the local space of the armature object'),
|
('ARMATURE', 'Armature', 'Export the local space of the armature object'),
|
||||||
|
|||||||
Reference in New Issue
Block a user