Line color flickers when turning the camera - SOLVED

I'm still working on my first jME project (SimpleApplet) so this might actually be a piece of cake to you. Now there occured a problem, to which I can't find a solution:



I've added some lines with a solid color:


route[0] = new Line("Route1", shop[0].getRoute(), null, null, null);            
            route[0].setMode(Line.Mode.Connected);
            route[0].setLineWidth(20f);
            route[0].setSolidColor(ColorRGBA.red.clone());
            route[0].setLightCombineMode(Spatial.LightCombineMode.Off);
            level1Node.attachChild(route[0]);



At the beginning it works fine, but when I detach the route from the level and attach it again with a javascript-controlled method the line starts to appear in every possible color. How to keep it red while toggling the visibility?

SOLVED July 08, 2010: It just needed the updateRenderState() :)