From f7d61c8c89d10a5cd5864143bfe3c6a5bfa3f775 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 15 Nov 2011 20:53:08 +0000 Subject: [PATCH] - remove unnecessary serialization in AssetQuatGrid git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8683 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java | 6 +++--- .../com/jme3/terrain/geomipmap/grid/AssetQuadGrid.java | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java index 5750f751f..9aa00fb1b 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java @@ -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(); } diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetQuadGrid.java b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetQuadGrid.java index de5b6ba61..bda1ad741 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetQuadGrid.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetQuadGrid.java @@ -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); } } \ No newline at end of file