diff --git a/leenkx/Sources/iron/object/ParticleSystem.hx b/leenkx/Sources/iron/object/ParticleSystem.hx index 5fab3a7..bd66660 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;