Skip to content

Commit

Permalink
Fixed SetTangentsForShape setting normals for NiGeometryData
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Apr 19, 2020
1 parent 7e12e37 commit 11befe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/NIF/NifFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ void NifFile::SetTangentsForShape(NiShape* shape, const std::vector<Vector3>& in
auto geomData = hdr.GetBlock<NiGeometryData>(shape->GetDataRef());
if (geomData) {
geomData->SetTangents(true);
geomData->normals = in;
geomData->tangents = in;
}
}
else if (shape->HasType<BSTriShape>()) {
Expand Down

0 comments on commit 11befe7

Please sign in to comment.