1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:59:56 +00:00

Read BSTriShape bounds into array

This commit is contained in:
Alexei Kotov 2023-07-26 05:36:52 +03:00
parent 6dca3e68a6
commit e7bbfed1fd
2 changed files with 2 additions and 2 deletions

View file

@ -342,7 +342,7 @@ namespace Nif
if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_F76)
{
nif->readVector(mBoundMinMax, 6);
nif->readArray(mBoundMinMax);
}
mSkin.read(nif);

View file

@ -356,7 +356,7 @@ namespace Nif
struct BSTriShape : Node
{
NiBoundingVolume::NiSphereBV mBoundingSphere;
std::vector<float> mBoundMinMax;
std::array<float, 6> mBoundMinMax;
NiSkinInstancePtr mSkin;
BSShaderPropertyPtr mShaderProperty;