diff --git a/leenkx/Sources/iron/object/ParticleSystem.hx b/leenkx/Sources/iron/object/ParticleSystem.hx index baeabac..a6b03da 100644 --- a/leenkx/Sources/iron/object/ParticleSystem.hx +++ b/leenkx/Sources/iron/object/ParticleSystem.hx @@ -22,10 +22,10 @@ class ParticleSystem { var ready: Bool; var frameRate = 24; var lifetime = 0.0; + var looptime = 0.0; var animtime = 0.0; var time = 0.0; var spawnRate = 0.0; - var looptime = 0.0; var seed = 0; var r: TParticleData; @@ -124,7 +124,8 @@ class ParticleSystem { public function update(object: MeshObject, owner: MeshObject) { if (!ready || object == null || speed == 0.0) return; - + if (iron.App.pauseUpdates) return; + var prevLap = lap; // Copy owner world transform but discard scale