diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 5a8d6a246d0e71d7249fc8adcdd22cbdd2a86726..1b9711b5dbc6af75cecc7853d9dd8c80f72cd146 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -369,7 +369,7 @@ def export(file, loc, rot, scale = matrix.decompose() rot = rot.to_axis_angle() - rot = rot[0][:] + (rot[1], ) + rot = rot[0].normalized()[:] + (rot[1], ) ident_step = ident + (' ' * (-len(ident) + \ fw('%s<Viewpoint ' % ident)))