From 11befe7e9ea966e24745bba20a4534e0cc895124 Mon Sep 17 00:00:00 2001 From: ousnius Date: Sun, 19 Apr 2020 17:26:57 +0200 Subject: [PATCH] Fixed SetTangentsForShape setting normals for NiGeometryData --- lib/NIF/NifFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NIF/NifFile.cpp b/lib/NIF/NifFile.cpp index 2e57b966..6be8ba93 100644 --- a/lib/NIF/NifFile.cpp +++ b/lib/NIF/NifFile.cpp @@ -2593,7 +2593,7 @@ void NifFile::SetTangentsForShape(NiShape* shape, const std::vector& in auto geomData = hdr.GetBlock(shape->GetDataRef()); if (geomData) { geomData->SetTangents(true); - geomData->normals = in; + geomData->tangents = in; } } else if (shape->HasType()) {