X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mesh_mspgl%2Fexport_mspgl.py;h=c776c54fea3fddec0051941e7230884abc60d695;hp=124114e5fe60cb1111cf0385428bb149c749cd26;hb=6aad00e0661dd515c0bc5a6ca05215bf6718bc75;hpb=ea6445c234d1db93e7c62cce228e94b2b652c1c5 diff --git a/blender/io_mesh_mspgl/export_mspgl.py b/blender/io_mesh_mspgl/export_mspgl.py index 124114e5..c776c54f 100644 --- a/blender/io_mesh_mspgl/export_mspgl.py +++ b/blender/io_mesh_mspgl/export_mspgl.py @@ -323,12 +323,13 @@ class Exporter: else: out_file.write("multitexcoord2", u.unit, *v.uvs[i]) uvs[i] = v.uvs[i] - if v.tan!=tan: - out_file.write("attrib3", 3, *v.tan) - tan = v.tan - if v.bino!=bino: - out_file.write("attrib3", 4, *v.bino) - bino = v.bino + if self.tbn_vecs: + if v.tan!=tan: + out_file.write("attrib3", 3, *v.tan) + tan = v.tan + if v.bino!=bino: + out_file.write("attrib3", 4, *v.bino) + bino = v.bino out_file.write("vertex3", *v.co) out_file.end() for s in strips: