From fcd646c996040ee00c0b9bc50b112b4ab12ebc69 Mon Sep 17 00:00:00 2001
From: Tazpn <tazpn@users.sourceforge.net>
Date: Thu, 9 Oct 2008 03:50:55 +0000
Subject: [PATCH] niflib:  Fix binormals and tangents calculation

---
 src/obj/NiTriBasedGeom.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/obj/NiTriBasedGeom.cpp b/src/obj/NiTriBasedGeom.cpp
index 5e07c4c0..875cb865 100644
--- a/src/obj/NiTriBasedGeom.cpp
+++ b/src/obj/NiTriBasedGeom.cpp
@@ -208,8 +208,8 @@ void NiTriBasedGeom::UpdateTangentSpace(int method) {
 			// no duplication, just smoothing
 			for ( int j = 0; j < 3; j++ ) {	
 				int i = tri[j];
-				tangents[i] += sdir;
-				binormals[i] += tdir;
+				tangents[i] += tdir;
+				binormals[i] += sdir;
 			}
 		}
 
-- 
GitLab