diff --git a/engine/src/core/com/jme3/effect/ParticleEmitter.java b/engine/src/core/com/jme3/effect/ParticleEmitter.java index e3f1f57a2..e8c278fd5 100644 --- a/engine/src/core/com/jme3/effect/ParticleEmitter.java +++ b/engine/src/core/com/jme3/effect/ParticleEmitter.java @@ -1132,7 +1132,7 @@ public class ParticleEmitter extends Geometry { meshType = ic.readEnum("meshType", ParticleMesh.Type.class, ParticleMesh.Type.Triangle); int numParticles = ic.readInt("numParticles", 0); - this.setNumParticles(numParticles); + enabled = ic.readBoolean("enabled", true); particlesPerSec = ic.readFloat("particlesPerSec", 0); @@ -1164,8 +1164,9 @@ public class ParticleEmitter extends Geometry { default: throw new IllegalStateException("Unrecognized particle type: " + meshType); } - particleMesh.initParticleData(this, particles.length); - particleMesh.setImagesXY(imagesX, imagesY); + this.setNumParticles(numParticles); +// particleMesh.initParticleData(this, particles.length); +// particleMesh.setImagesXY(imagesX, imagesY); particleInfluencer = (ParticleInfluencer) ic.readSavable("influencer", DEFAULT_INFLUENCER); if (particleInfluencer == DEFAULT_INFLUENCER) {