|
|
@ -452,10 +452,12 @@ public class TerrainGrid extends TerrainQuad { |
|
|
|
offsetAmount = c.readFloat("offsetAmount", 0); |
|
|
|
offsetAmount = c.readFloat("offsetAmount", 0); |
|
|
|
terrainQuadGrid = (TerrainQuadGrid) c.readSavable("terrainQuadGrid", null); |
|
|
|
terrainQuadGrid = (TerrainQuadGrid) c.readSavable("terrainQuadGrid", null); |
|
|
|
initData(); |
|
|
|
initData(); |
|
|
|
|
|
|
|
if (terrainQuadGrid != null) { |
|
|
|
terrainQuadGrid.setSize(this.size); |
|
|
|
terrainQuadGrid.setSize(this.size); |
|
|
|
terrainQuadGrid.setPatchSize(this.patchSize); |
|
|
|
terrainQuadGrid.setPatchSize(this.patchSize); |
|
|
|
terrainQuadGrid.setQuadSize(this.quadSize); |
|
|
|
terrainQuadGrid.setQuadSize(this.quadSize); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void write(JmeExporter ex) throws IOException { |
|
|
|
public void write(JmeExporter ex) throws IOException { |
|
|
|