mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-19 15:09:43 +00:00
Fix the particle quota
This commit is contained in:
parent
41ce5464c9
commit
f764f243d2
2 changed files with 4 additions and 2 deletions
|
@ -165,6 +165,8 @@ public:
|
|||
class NiAutoNormalParticlesData : public ShapeData
|
||||
{
|
||||
public:
|
||||
int numParticles;
|
||||
|
||||
float particleSize;
|
||||
|
||||
int activeCount;
|
||||
|
@ -176,7 +178,7 @@ public:
|
|||
ShapeData::read(nif);
|
||||
|
||||
// Should always match the number of vertices
|
||||
nif->getUShort();
|
||||
numParticles = nif->getUShort();
|
||||
|
||||
particleSize = nif->getFloat();
|
||||
activeCount = nif->getUShort();
|
||||
|
|
|
@ -1274,7 +1274,7 @@ class NIFMeshLoader : Ogre::ManualResourceLoader
|
|||
|
||||
partsys->setDefaultDimensions(particledata->particleSize, particledata->particleSize);
|
||||
partsys->setCullIndividually(false);
|
||||
partsys->setParticleQuota(particledata->activeCount);
|
||||
partsys->setParticleQuota(particledata->numParticles);
|
||||
|
||||
Nif::ControllerPtr ctrl = partnode->controller;
|
||||
while(!ctrl.empty())
|
||||
|
|
Loading…
Reference in a new issue