- fix TerrainGrid UpdateControl adding when deserializing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
17cae68366
commit
534ab2f737
@ -204,6 +204,7 @@ public class TerrainGrid extends TerrainQuad {
|
|||||||
terrainQuadGrid.setSize(this.size);
|
terrainQuadGrid.setSize(this.size);
|
||||||
terrainQuadGrid.setPatchSize(this.patchSize);
|
terrainQuadGrid.setPatchSize(this.patchSize);
|
||||||
terrainQuadGrid.setQuadSize(this.quadSize);
|
terrainQuadGrid.setQuadSize(this.quadSize);
|
||||||
|
addControl(new UpdateControl());
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, TerrainGridTileLoader terrainQuadGrid) {
|
public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, TerrainGridTileLoader terrainQuadGrid) {
|
||||||
@ -225,6 +226,7 @@ public class TerrainGrid extends TerrainQuad {
|
|||||||
initData();
|
initData();
|
||||||
this.heightMapGrid = heightMapGrid;
|
this.heightMapGrid = heightMapGrid;
|
||||||
heightMapGrid.setSize(this.quadSize);
|
heightMapGrid.setSize(this.quadSize);
|
||||||
|
addControl(new UpdateControl());
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, HeightMapGrid heightMapGrid) {
|
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, 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)};
|
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) {
|
public void initialize(Vector3f location) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user