mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 07:09:42 +00:00
Minor cleanup of NiMorphData
This commit is contained in:
parent
08d43fe217
commit
23097ac9dc
1 changed files with 2 additions and 5 deletions
|
@ -398,16 +398,13 @@ struct NiMorphData : public Record
|
||||||
{
|
{
|
||||||
int morphCount = nif->getInt();
|
int morphCount = nif->getInt();
|
||||||
int vertCount = nif->getInt();
|
int vertCount = nif->getInt();
|
||||||
nif->getChar();
|
/*relative targets?*/nif->getChar();
|
||||||
|
|
||||||
mMorphs.resize(morphCount);
|
mMorphs.resize(morphCount);
|
||||||
for(int i = 0;i < morphCount;i++)
|
for(int i = 0;i < morphCount;i++)
|
||||||
{
|
{
|
||||||
mMorphs[i].mData.read(nif, true);
|
mMorphs[i].mData.read(nif, true);
|
||||||
|
nif->getVector3s(mMorphs[i].mVertices, vertCount);
|
||||||
mMorphs[i].mVertices.resize(vertCount);
|
|
||||||
for(int j = 0;j < vertCount;j++)
|
|
||||||
mMorphs[i].mVertices[j] = nif->getVector3();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue