From b9d42946bed9da99079db7997870c8809d29255a Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Wed, 27 Sep 2023 18:41:06 +0300 Subject: [PATCH] Fix SSE mesh loading --- components/nif/node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nif/node.cpp b/components/nif/node.cpp index 62c32f3c15..2de337128c 100644 --- a/components/nif/node.cpp +++ b/components/nif/node.cpp @@ -393,8 +393,6 @@ namespace Nif mShaderProperty.read(nif); mAlphaProperty.read(nif); mVertDesc.read(nif); - if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_SSE) - mVertDesc.mFlags |= BSVertexDesc::VertexAttribute::Full_Precision; if (nif->getBethVersion() >= NIFFile::BethVersion::BETHVER_FO4) mTriangles.resize(nif->get() * 3); @@ -462,6 +460,8 @@ namespace Nif mLandscapeDataOffset = (data & 0xF00000000) >> 0x20; mEyeDataOffset = (data & 0xF000000000) >> 0x24; mFlags = (data & 0xFFF00000000000) >> 0x2C; + if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_SSE) + mFlags |= BSVertexDesc::VertexAttribute::Full_Precision; } void BSVertexData::read(NIFStream* nif, uint16_t flags)