Set the particle scaleReferenceFrame to local space

openmw-37
scrawl 9 years ago
parent 038f682510
commit 966737f891

@ -843,6 +843,8 @@ namespace NifOsg
partsys->getOrCreateUserDataContainer()->addDescription("worldspace"); partsys->getOrCreateUserDataContainer()->addDescription("worldspace");
} }
partsys->setParticleScaleReferenceFrame(osgParticle::ParticleSystem::LOCAL_COORDINATES);
handleParticleInitialState(nifNode, partsys, partctrl); handleParticleInitialState(nifNode, partsys, partctrl);
partsys->setQuota(partctrl->numParticles); partsys->setQuota(partctrl->numParticles);

Loading…
Cancel
Save