From 0c534ee632b667599cd6c7628b01e0e29525f7f8 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Wed, 1 Oct 2025 01:42:51 +0000 Subject: [PATCH] Update leenkx/Sources/iron/object/ParticleSystem.hx --- leenkx/Sources/iron/object/ParticleSystem.hx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/leenkx/Sources/iron/object/ParticleSystem.hx b/leenkx/Sources/iron/object/ParticleSystem.hx index 5fab3a7a..bd66660a 100644 --- a/leenkx/Sources/iron/object/ParticleSystem.hx +++ b/leenkx/Sources/iron/object/ParticleSystem.hx @@ -71,11 +71,12 @@ class ParticleSystem { Data.getParticle(sceneName, pref.particle, function(b: ParticleData) { data = b; r = data.raw; - if (r.dynamic_emitter != null){ - dynamicEmitter = r.dynamic_emitter; - } else { - dynamicEmitter = true; + var dyn: Null = r.dynamic_emitter; + var dynValue: Bool = true; + if (dyn != null) { + dynValue = dyn; } + dynamicEmitter = dynValue; if (Scene.active.raw.gravity != null) { gx = Scene.active.raw.gravity[0] * r.weight_gravity; gy = Scene.active.raw.gravity[1] * r.weight_gravity;