diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-08 04:09:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-08 04:09:10 +0300 |
commit | 226b00844624cdc222bfcf0aac6c226b96de3550 (patch) | |
tree | 1295d92c937af1a4ffb2aef79c5417a365e00bbd /io_scene_x3d/export_x3d.py | |
parent | 80853daea9394b9135bef342eefa0150a1c1a5f8 (diff) |
Use Python3.5's unpacking generalizations
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 819819c5..24bfbe1e 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -348,7 +348,7 @@ def export(file, loc, rot, scale = matrix.decompose() rot = rot.to_axis_angle() - rot = rot[0].normalized()[:] + (rot[1], ) + rot = (*rot[0].normalized(), rot[1]) ident_step = ident + (' ' * (-len(ident) + \ fw('%s<Viewpoint ' % ident))) @@ -395,7 +395,7 @@ def export(file, loc, rot, sca = matrix.decompose() rot = rot.to_axis_angle() - rot = rot[0][:] + (rot[1], ) + rot = (*rot[0], rot[1]) fw(ident_step + 'translation="%.6f %.6f %.6f"\n' % loc[:]) # fw(ident_step + 'center="%.6f %.6f %.6f"\n' % (0, 0, 0)) |