Merge branch 'thirdtimesthecharm' into 'master'

Rehash the rehashing of rehashed morph loading

See merge request OpenMW/openmw!2413
make_linux_ci_do_zoomies
psi29a 2 years ago
commit 86ff454ca2

@ -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:

Loading…
Cancel
Save