From e4983751c733c7c5467d9a838f8c310c23e9e82d Mon Sep 17 00:00:00 2001 From: "ant..om" Date: Fri, 24 Jun 2011 05:35:38 +0000 Subject: [PATCH] fixed collisiongroup check on grid change git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7720 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/terrain/geomipmap/TerrainGrid.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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