- fix in deserialization of TerrainGrid

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8684 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent f7d61c8c89
commit 666ff483a4
  1. 2
      engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java

@ -451,10 +451,10 @@ public class TerrainGrid extends TerrainQuad {
offset = (Vector2f) c.readSavable("offset", null); offset = (Vector2f) c.readSavable("offset", null);
offsetAmount = c.readFloat("offsetAmount", 0); offsetAmount = c.readFloat("offsetAmount", 0);
terrainQuadGrid = (TerrainQuadGrid) c.readSavable("terrainQuadGrid", null); terrainQuadGrid = (TerrainQuadGrid) c.readSavable("terrainQuadGrid", null);
initData();
terrainQuadGrid.setSize(this.size); terrainQuadGrid.setSize(this.size);
terrainQuadGrid.setPatchSize(this.patchSize); terrainQuadGrid.setPatchSize(this.patchSize);
terrainQuadGrid.setQuadSize(this.quadSize); terrainQuadGrid.setQuadSize(this.quadSize);
initData();
} }
@Override @Override

Loading…
Cancel
Save