mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-27 10:06:49 +00:00
Fix >1 particle radii loading
This commit is contained in:
parent
0ad3463d36
commit
655dcef34c
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace Nif
|
||||||
nif->read(mNumParticles);
|
nif->read(mNumParticles);
|
||||||
bool isBs202 = nif->getVersion() == NIFFile::NIFVersion::VER_BGS && nif->getBethVersion() != 0;
|
bool isBs202 = nif->getVersion() == NIFFile::NIFVersion::VER_BGS && nif->getBethVersion() != 0;
|
||||||
|
|
||||||
bool numRadii = 1;
|
uint16_t numRadii = 1;
|
||||||
if (nif->getVersion() > NIFStream::generateVersion(10, 0, 1, 0))
|
if (nif->getVersion() > NIFStream::generateVersion(10, 0, 1, 0))
|
||||||
numRadii = (nif->get<bool>() && !isBs202) ? mNumVertices : 0;
|
numRadii = (nif->get<bool>() && !isBs202) ? mNumVertices : 0;
|
||||||
nif->readVector(mRadii, numRadii);
|
nif->readVector(mRadii, numRadii);
|
||||||
|
|
Loading…
Reference in a new issue