diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java index 60a07a5be..f5dcb11b3 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java @@ -29,7 +29,6 @@ import com.jme3.terrain.heightmap.HeightMapGrid; public class TerrainGrid extends TerrainQuad { private static final Logger log = Logger.getLogger(TerrainGrid.class.getCanonicalName()); - private Vector3f currentCell; private int quarterSize; private int quadSize; @@ -120,15 +119,15 @@ public class TerrainGrid extends TerrainQuad { } public void initialize(Vector3f location) { - if(this.material == null){ - throw new RuntimeException("Material must be set prior to call of initialize"); + if (this.material == null) { + throw new RuntimeException("Material must be set prior to call of initialize"); } Vector3f camCell = this.getCell(location); this.updateChildrens(camCell); for (TerrainGridListener l : this.listeners.values()) { l.gridMoved(camCell); } - } + } @Override public void update(List locations) { @@ -202,7 +201,7 @@ public class TerrainGrid extends TerrainQuad { kym = 1; } - for (int i=kym; i