From 6aad00e0661dd515c0bc5a6ca05215bf6718bc75 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 9 Aug 2012 23:22:35 +0300 Subject: [PATCH] An extra sanity check for TBN export --- blender/io_mesh_mspgl/export_mspgl.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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: -- 2.45.2