Limited particle burst rate internally to 0.01 to avoid viewer lockups in particle editor. Fixes FIRE-4862

meow-7.2.2
ziree 2012-02-02 12:35:22 +01:00
parent 32df7b0f38
commit 2a3eb01f95
1 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,8 @@ void ParticleEditor::onParameterChange()
if(mTexture->getID()==IMG_DEFAULT || mTexture->getID().isNull())
mTexture=mDefaultParticleTexture;
mParticles.mBurstRate=mBurstRateSpinner->getValueF32();
// limit burst rate to 0.01 to avoid internal freeze, script still gets the real value
mParticles.mBurstRate=llmax(0.01f,mBurstRateSpinner->getValueF32());
mParticles.mBurstPartCount=mBurstCountSpinner->getValue().asInteger();
mParticles.mBurstRadius=mBurstRadiusSpinner->getValueF32();
mParticles.mInnerAngle=mAngleBeginSpinner->getValueF32();