From: Mikko Rasa Date: Thu, 9 Aug 2012 20:22:35 +0000 (+0300) Subject: An extra sanity check for TBN export X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=6aad00e0661dd515c0bc5a6ca05215bf6718bc75 An extra sanity check for TBN export --- 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: