diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainLodControl.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainLodControl.java index b9a52da70..17139414b 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainLodControl.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainLodControl.java @@ -61,27 +61,25 @@ import java.util.ArrayList; * @author Brent Owens */ public class TerrainLodControl extends AbstractControl { - - private TerrainQuad terrain; - private List cameras; - private List cameraLocations = new ArrayList(); + private TerrainQuad terrain; + private List cameras; + private List cameraLocations = new ArrayList(); public TerrainLodControl() { - } - /** - * Only uses the first camera right now. - * @param terrain to act upon (must be a Spatial) - * @param cameras one or more cameras to reference for LOD calc - */ - public TerrainLodControl(Terrain terrain, List cameras) { - super((Spatial)terrain); - if (terrain instanceof TerrainQuad) - this.terrain = (TerrainQuad)terrain; - this.cameras = cameras; - } + /** + * Only uses the first camera right now. + * @param terrain to act upon (must be a Spatial) + * @param cameras one or more cameras to reference for LOD calc + */ + public TerrainLodControl(Terrain terrain, List cameras) { + if (terrain instanceof TerrainQuad) { + this.terrain = (TerrainQuad) terrain; + } + this.cameras = cameras; + } @Override protected void controlRender(RenderManager rm, ViewPort vp) {