diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-27 20:26:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-27 20:26:34 +0400 |
commit | f7bf12743d54b6278eaedcab5e721687e6ad27dc (patch) | |
tree | 63a9edb1c0dda9140e12d3faffa87aaa8955d93b /io_scene_x3d/export_x3d.py | |
parent | 6f253e62c351308489258ee16a854f33c1bf635c (diff) |
fix for vec/quat multiplication order
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index da35dad2..7326d9d0 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -1045,7 +1045,7 @@ def export(file, elif uniform['type'] == gpu.GPU_DYNAMIC_LAMP_DYNVEC: if uniform['datatype'] == gpu.GPU_DATA_3F: lamp_obj = bpy.data.objects[uniform['lamp']] - value = '%.6g %.6g %.6g' % (mathutils.Vector((0.0, 0.0, 1.0)) * (global_matrix * lamp_obj.matrix_world).to_quaternion()).normalized()[:] + value = '%.6g %.6g %.6g' % ((global_matrix * lamp_obj.matrix_world).to_quaternion() * mathutils.Vector((0.0, 0.0, 1.0))).normalized()[:] fw('%s<field name="%s" type="SFVec3f" accessType="inputOutput" value="%s" />\n' % (ident, uniform['varname'], value)) else: assert(0) |