Line displayed in front of everything

Hi guys,



When I create a selection line under a model, it is displayed constantly in front of everything :







And I am using a z-buffer !



Can you tell me what I should do to have a good z-ordering ?



The code for the line creation is :



selectionShape = new Line("selection "+node.getName(), points, null, colors, null);
selectionShape.setMode(Line.LOOP);
selectionShape.setLineWidth(1);
selectionShape.setLightCombineMode(LightState.OFF);
selectionShape.updateRenderState();
      
rootNode.attachChild(selectionShape);



Thanks !