mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:24:07 +02:00
Only emit particles if isEmitting is true
This commit is contained in:
parent
e2e086ef55
commit
09e5b30c16
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ void ParticleEffectEntityItem::stepSimulation(float deltaTime) {
|
|||
}
|
||||
|
||||
// emit new particles, but only if we are emmitting
|
||||
if (isEmittingParticles() && _emitRate > 0.0f && _lifespan > 0.0f && _polarStart <= _polarFinish) {
|
||||
if (getIsEmitting() && _emitRate > 0.0f && _lifespan > 0.0f && _polarStart <= _polarFinish) {
|
||||
|
||||
float timeLeftInFrame = deltaTime;
|
||||
while (_timeUntilNextEmit < timeLeftInFrame) {
|
||||
|
|
Loading…
Reference in a new issue