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:
commit
86ff454ca2
1 changed files with 8 additions and 7 deletions
|
@ -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…
Reference in a new issue