diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-02 14:53:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-02 14:53:05 +0400 |
commit | c8dae7e6602da884f319dd8ffc1499a34c9bd94e (patch) | |
tree | 991c86b45d801c602c1a505c65bfacf73c8853f2 /io_scene_x3d/export_x3d.py | |
parent | 93d8d84f014d8f1d06f39ccd7850393bb3f19380 (diff) |
update for matrix row/col switch
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 a3964db6..88dd8ab8 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -1164,7 +1164,7 @@ def export(file, elif uniform['type'] == gpu.GPU_DYNAMIC_OBJECT_IMAT: frag_uniform_var_map[uniform['varname']] = None if uniform['datatype'] == gpu.GPU_DATA_16F: - value = ' '.join(['%.6f' % f for v in (global_matrix * obj.matrix_world).inverted() for f in v]) + value = ' '.join(['%.6f' % f for v in (global_matrix * obj.matrix_world).inverted().transposed() for f in v]) field_descr = " <!--- Object Invertex Matrix '%s' -->" % obj.name fw('%s<field name="%s" type="SFMatrix4f" accessType="inputOutput" value="%s" />%s\n' % (ident, uniform['varname'], value, field_descr)) else: |