OSDN Git Service

variable assignment for RawArrayHeightMap serialization
authorbrentowens <brentowens@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 30 Jun 2011 01:03:32 +0000 (01:03 +0000)
committerbrentowens <brentowens@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 30 Jun 2011 01:03:32 +0000 (01:03 +0000)
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7787 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

engine/src/terrain/com/jme3/terrain/heightmap/RawArrayHeightMap.java

index f3c412e..38cc19b 100644 (file)
@@ -117,9 +117,9 @@ public class RawArrayHeightMap extends AbstractHeightMap implements Savable
     public void read( JmeImporter im ) throws IOException
     {
         InputCapsule ic = im.getCapsule( this );
-        ic.readInt( "size", 0 );
-        ic.readFloat( "heightScale", 1.0f );
-        ic.readFloat( "filter", 0.5f );
-        ic.readFloatArray( "heightData", null );
+        size = ic.readInt( "size", 0 );
+        heightScale = ic.readFloat( "heightScale", 1.0f );
+        filter = ic.readFloat( "filter", 0.5f );
+        heightData = ic.readFloatArray( "heightData", null );
     }
 }
\ No newline at end of file