From 872e2d4d522b0e79db8ae7665a548f462bd127c5 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Fri, 18 Sep 2015 22:24:32 -0700 Subject: [PATCH] Fix UV Selection --- DataSpec/DNAMP3/CMDLMaterials.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataSpec/DNAMP3/CMDLMaterials.cpp b/DataSpec/DNAMP3/CMDLMaterials.cpp index 440d0a746..d8c04f36b 100644 --- a/DataSpec/DNAMP3/CMDLMaterials.cpp +++ b/DataSpec/DNAMP3/CMDLMaterials.cpp @@ -136,12 +136,12 @@ void Material::SectionPASS::constructNode(HECL::BlenderConnection::PyOutStream& resPathView.str().c_str(), texName.c_str()); if (uvAnim.size()) { - DNAMP1::MaterialSet::Material::AddTexture(out, GX::TexGenSrc(uvSrc), texMtxIdx, texMapIdx++); const UVAnimation& uva = uvAnim[0]; + DNAMP1::MaterialSet::Material::AddTexture(out, GX::TexGenSrc(uva.unk1 + (uva.unk1 < 2 ? 0 : 4)), -1, texMapIdx++); DNAMP1::MaterialSet::Material::AddTextureAnim(out, uva.anim.mode, texMtxIdx++, uva.anim.vals); } else - DNAMP1::MaterialSet::Material::AddTexture(out, GX::TexGenSrc(uvSrc), -1, texMapIdx++); + DNAMP1::MaterialSet::Material::AddTexture(out, GX::TexGenSrc(uvSrc + 4), -1, texMapIdx++); } /* Add PASS node */