@Override public Control cloneForSpatial(Spatial spatial) { KillParticleControl c = new KillParticleControl(); //this control should be removed as it shouldn't have been persisted in the first place //In the quest to find the less hackish solution to achieve this, //making it remove itself from the spatial in the first update loop when loaded was the less bad. c.remove = true; c.setSpatial(spatial); return c; } };
@Override public Object jmeClone() { KillParticleControl c = new KillParticleControl(); //this control should be removed as it shouldn't have been persisted in the first place //In the quest to find the less hackish solution to achieve this, //making it remove itself from the spatial in the first update loop when loaded was the less bad. c.remove = true; c.spatial = spatial; return c; }
@Override public Control cloneForSpatial(Spatial spatial) { KillParticleControl c = new KillParticleControl(); //this control should be removed as it shouldn't have been persisted in the first place //In the quest to find the less hackish solution to achieve this, //making it remove itself from the spatial in the first update loop when loaded was the less bad. c.remove = true; c.setSpatial(spatial); return c; } };
@Override public Object jmeClone() { KillParticleControl c = new KillParticleControl(); //this control should be removed as it shouldn't have been persisted in the first place //In the quest to find the less hackish solution to achieve this, //making it remove itself from the spatial in the first update loop when loaded was the less bad. c.remove = true; c.spatial = spatial; return c; }