- fix TerrainGrid UpdateControl adding when deserializing

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 17cae68366
commit 534ab2f737
  1. 3
      engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java

@ -204,6 +204,7 @@ public class TerrainGrid extends TerrainQuad {
terrainQuadGrid.setSize(this.size);
terrainQuadGrid.setPatchSize(this.patchSize);
terrainQuadGrid.setQuadSize(this.quadSize);
addControl(new UpdateControl());
}
public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, TerrainGridTileLoader terrainQuadGrid) {
@ -225,6 +226,7 @@ public class TerrainGrid extends TerrainQuad {
initData();
this.heightMapGrid = heightMapGrid;
heightMapGrid.setSize(this.quadSize);
addControl(new UpdateControl());
}
public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, HeightMapGrid heightMapGrid) {
@ -260,7 +262,6 @@ public class TerrainGrid extends TerrainQuad {
new Vector3f(-1, 0, 1), new Vector3f(0, 0, 1), new Vector3f(1, 0, 1), new Vector3f(2, 0, 1),
new Vector3f(-1, 0, 2), new Vector3f(0, 0, 2), new Vector3f(1, 0, 2), new Vector3f(2, 0, 2)};
addControl(new UpdateControl());
}
public void initialize(Vector3f location) {

Loading…
Cancel
Save