Skip to content
Snippets Groups Projects
Commit 089b22f4 authored by Campbell Barton's avatar Campbell Barton
Browse files

alternate fix for patch [#30572] X3D exporter outputs invalid Viewpoint.orientation = zero

by Michalis Kamburelis (kambi)

Normalize the axis before writing to avoid small values writing as a zero'd axis.
parent 24cebd7b
No related branches found
No related tags found
No related merge requests found
......@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment