From bcfeb0631746b76c28df8f12b75e8c892f301512 Mon Sep 17 00:00:00 2001 From: "ant..om" Date: Sun, 26 Jun 2011 08:27:50 +0000 Subject: [PATCH] Fix: calculating localTranslation after gridChange git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7738 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java index f5dcb11b3..60470e33c 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java @@ -244,7 +244,7 @@ public class TerrainGrid extends TerrainQuad { attachQuadAt(q4, 4); this.currentCell = cam; - this.setLocalTranslation(cam.mult(this.getLocalScale().mult(this.quadSize))); + this.setLocalTranslation(cam.mult(this.getLocalScale().mult(this.quadSize-1))); this.updateModelBound(); if (control != null) {