1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:45:36 +00:00

Merge branch 'thirdtimesthecharm' into 'master'

Rehash the rehashing of rehashed morph loading

See merge request OpenMW/openmw!2413
This commit is contained in:
psi29a 2022-09-16 06:09:21 +00:00
commit 86ff454ca2

View file

@ -57,6 +57,14 @@ struct KeyMapT {
if (morph && nif->getVersion() >= NIFStream::generateVersion(10,1,0,106))
nif->getString(); // Frame name
if (morph && nif->getVersion() > NIFStream::generateVersion(10,1,0,0))
{
if (nif->getVersion() >= NIFStream::generateVersion(10,1,0,104) &&
nif->getVersion() <= NIFStream::generateVersion(20,1,0,2) && nif->getBethVersion() < 10)
nif->getFloat(); // Legacy weight
return;
}
size_t count = nif->getUInt();
if (count != 0 || morph)
@ -103,13 +111,6 @@ struct KeyMapT {
{
nif->file->fail("Unhandled interpolation type: " + std::to_string(mInterpolationType));
}
if (morph && nif->getVersion() > NIFStream::generateVersion(10,1,0,0))
{
if (nif->getVersion() >= NIFStream::generateVersion(10,1,0,104) &&
nif->getVersion() <= NIFStream::generateVersion(20,1,0,2) && nif->getBethVersion() < 10)
nif->getFloat(); // Legacy weight
}
}
private: