LensFlare Problem

Ive been playing around with TestLensFlare and have a problem.

The original test works ok and the flares remove when the flare source is off the screen.

However my cut down version (where the lightNode has no children) does not remove the flares.



package test;

import com.influx.util.DataHandler;
import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingBox;
import com.jme.image.Image;
import com.jme.image.Texture;
import com.jme.light.LightNode;
import com.jme.light.PointLight;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.shape.Box;
import com.jme.scene.state.LightState;
import com.jme.scene.state.TextureState;
import com.jme.util.TextureManager;
import com.jmex.effects.LensFlare;
import com.jmex.effects.LensFlareFactory;

public class NewClass extends SimpleGame {
   
   public static void main(String[] args) {
      NewClass app = new NewClass();
      app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);
      app.start();
   }
   
   protected void simpleInitGame() {
      
      cam.setLocation(new Vector3f(0.0f, 0.0f, 100.0f));
      cam.update();

      LightNode lightNode = new LightNode("light", lightState);
      //lightNode.setTarget(rootNode);
      lightNode.setLocalTranslation(new Vector3f(-20f, 0, 0));
      
      TextureState[] textureState = new TextureState[4];
      textureState[0] = display.getRenderer().createTextureState();
      textureState[0].setTexture(TextureManager.loadTexture(DataHandler.getTexture("stars/blue1/1.png"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR, Image.RGBA8888, 1.0f, true));
      textureState[1] = display.getRenderer().createTextureState();
      textureState[1].setTexture(TextureManager.loadTexture(DataHandler.getTexture("stars/blue1/2.png"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR));
      textureState[2] = display.getRenderer().createTextureState();
      textureState[2].setTexture(TextureManager.loadTexture(DataHandler.getTexture("stars/blue1/3.png"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR));
      textureState[3] = display.getRenderer().createTextureState();
      textureState[3].setTexture(TextureManager.loadTexture(DataHandler.getTexture("stars/blue1/4.png"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR));
      
      LensFlare flare = LensFlareFactory.createBasicLensFlare("flare", textureState);
      flare.setRootNode(rootNode);
      lightNode.attachChild(flare);
      
      rootNode.attachChild(lightNode);      
   }
}



I dont need a light source attached to the lensFlare as its just for visual purposes.