Fix: calculating localTranslation after gridChange

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7738 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
ant..om 14 years ago
parent 426e48541a
commit bcfeb06317
  1. 2
      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) {

Loading…
Cancel
Save