forked from mirror/openmw-tes3mp
Specified particle size is actually the radius
This commit is contained in:
parent
50d8353a8d
commit
6c6750342c
2 changed files with 4 additions and 3 deletions
|
@ -167,7 +167,7 @@ class NiAutoNormalParticlesData : public ShapeData
|
||||||
public:
|
public:
|
||||||
int numParticles;
|
int numParticles;
|
||||||
|
|
||||||
float particleSize;
|
float particleRadius;
|
||||||
|
|
||||||
int activeCount;
|
int activeCount;
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ public:
|
||||||
// Should always match the number of vertices
|
// Should always match the number of vertices
|
||||||
numParticles = nif->getUShort();
|
numParticles = nif->getUShort();
|
||||||
|
|
||||||
particleSize = nif->getFloat();
|
particleRadius = nif->getFloat();
|
||||||
activeCount = nif->getUShort();
|
activeCount = nif->getUShort();
|
||||||
|
|
||||||
if(nif->getInt())
|
if(nif->getInt())
|
||||||
|
|
|
@ -1543,7 +1543,8 @@ class NIFObjectLoader : Ogre::ManualResourceLoader
|
||||||
vertprop, zprop, specprop,
|
vertprop, zprop, specprop,
|
||||||
wireprop, needTangents));
|
wireprop, needTangents));
|
||||||
|
|
||||||
partsys->setDefaultDimensions(particledata->particleSize, particledata->particleSize);
|
partsys->setDefaultDimensions(particledata->particleRadius*2.0f,
|
||||||
|
particledata->particleRadius*2.0f);
|
||||||
partsys->setCullIndividually(false);
|
partsys->setCullIndividually(false);
|
||||||
partsys->setParticleQuota(particledata->numParticles);
|
partsys->setParticleQuota(particledata->numParticles);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue