mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Load bhkMoppBvTreeShape
This commit is contained in:
parent
59ce00f742
commit
e7cc76bba2
4 changed files with 56 additions and 1 deletions
|
@ -42,6 +42,17 @@ namespace Nif
|
|||
mHavokMaterial.read(nif);
|
||||
}
|
||||
|
||||
void hkpMoppCode::read(NIFStream *nif)
|
||||
{
|
||||
unsigned int size = nif->getUInt();
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(10,1,0,0))
|
||||
mOffset = nif->getVector4();
|
||||
if (nif->getBethVersion() > NIFFile::BethVersion::BETHVER_FO3)
|
||||
nif->getChar(); // MOPP data build type
|
||||
if (size)
|
||||
nif->getChars(mData, size);
|
||||
}
|
||||
|
||||
void bhkEntityCInfo::read(NIFStream *nif)
|
||||
{
|
||||
mResponseType = static_cast<hkResponseType>(nif->getChar());
|
||||
|
@ -78,4 +89,22 @@ namespace Nif
|
|||
mInfo.read(nif);
|
||||
}
|
||||
|
||||
void bhkBvTreeShape::read(NIFStream *nif)
|
||||
{
|
||||
mShape.read(nif);
|
||||
}
|
||||
|
||||
void bhkBvTreeShape::post(NIFFile *nif)
|
||||
{
|
||||
mShape.post(nif);
|
||||
}
|
||||
|
||||
void bhkMoppBvTreeShape::read(NIFStream *nif)
|
||||
{
|
||||
bhkBvTreeShape::read(nif);
|
||||
nif->skip(12); // Unused
|
||||
mScale = nif->getFloat();
|
||||
mMopp.read(nif);
|
||||
}
|
||||
|
||||
} // Namespace
|
Loading…
Add table
Add a link
Reference in a new issue