io_scene_3ds: Take scene units into account for export #104775
@ -1209,7 +1209,7 @@ def make_track_chunk(ID, ob, ob_pos, ob_rot, ob_size):
|
|||||||
|
|
||||||
elif ID == ROT_TRACK_TAG: # Rotation (angle first [radians], followed by axis)
|
elif ID == ROT_TRACK_TAG: # Rotation (angle first [radians], followed by axis)
|
||||||
quat = ob_rot.to_quaternion().inverted()
|
quat = ob_rot.to_quaternion().inverted()
|
||||||
track_chunk.add_variable("rotation", _3ds_point_4d((quat.angle, quat.axis,x, quat.axis.y, quat.axis.z)))
|
track_chunk.add_variable("rotation", _3ds_point_4d((quat.angle, quat.axis.x, quat.axis.y, quat.axis.z)))
|
||||||
|
|
||||||
elif ID == SCL_TRACK_TAG: # Scale vector
|
elif ID == SCL_TRACK_TAG: # Scale vector
|
||||||
track_chunk.add_variable("scale", _3ds_point_3d(ob_size))
|
track_chunk.add_variable("scale", _3ds_point_3d(ob_size))
|
||||||
|
Loading…
Reference in New Issue
Block a user