- remove unnecessary serialization in AssetQuatGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8683 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
28d0bff4ea
commit
f7d61c8c89
@ -451,9 +451,9 @@ public class TerrainGrid extends TerrainQuad {
|
||||
offset = (Vector2f) c.readSavable("offset", null);
|
||||
offsetAmount = c.readFloat("offsetAmount", 0);
|
||||
terrainQuadGrid = (TerrainQuadGrid) c.readSavable("terrainQuadGrid", null);
|
||||
// terrainQuadGrid.setSize(this.size);
|
||||
// terrainQuadGrid.setPatchSize(this.patchSize);
|
||||
// terrainQuadGrid.setQuadSize(this.quadSize);
|
||||
terrainQuadGrid.setSize(this.size);
|
||||
terrainQuadGrid.setPatchSize(this.patchSize);
|
||||
terrainQuadGrid.setQuadSize(this.quadSize);
|
||||
initData();
|
||||
}
|
||||
|
||||
|
@ -76,10 +76,7 @@ public class AssetQuadGrid implements TerrainQuadGrid {
|
||||
public void write(JmeExporter ex) throws IOException {
|
||||
OutputCapsule c = ex.getCapsule(this);
|
||||
c.write(assetPath, "assetPath", null);
|
||||
c.write(size, "size", 0);
|
||||
c.write(name, "name", null);
|
||||
c.write(patchSize, "patchSize", 0);
|
||||
c.write(quadSize, "quadSize", 0);
|
||||
}
|
||||
|
||||
public void read(JmeImporter im) throws IOException {
|
||||
@ -87,8 +84,5 @@ public class AssetQuadGrid implements TerrainQuadGrid {
|
||||
manager = im.getAssetManager();
|
||||
assetPath = c.readString("assetPath", null);
|
||||
name = c.readString("name", null);
|
||||
size = c.readInt("size", 0);
|
||||
patchSize = c.readInt("patchSize", 0);
|
||||
quadSize = c.readInt("quadSize", 0);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user