浏览代码

Bugfix: issue #613 (ClassCastException during read) in trunk

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@11078 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
sgold 11 年之前
父节点
当前提交
babb2cdce8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java

+ 2 - 2
engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java

@@ -610,7 +610,7 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable
         InputCapsule ic = (InputCapsule) im.getCapsule(this);
         InputCapsule ic = (InputCapsule) im.getCapsule(this);
         assetManager = im.getAssetManager();
         assetManager = im.getAssetManager();
         nbShadowMaps = ic.readInt("nbShadowMaps", 1);
         nbShadowMaps = ic.readInt("nbShadowMaps", 1);
-        shadowMapSize = ic.readInt("shadowMapSize", 0);
+        shadowMapSize = ic.readFloat("shadowMapSize", 0f);
         shadowIntensity = ic.readFloat("shadowIntensity", 0.7f);
         shadowIntensity = ic.readFloat("shadowIntensity", 0.7f);
         edgeFilteringMode = ic.readEnum("edgeFilteringMode", EdgeFilteringMode.class, EdgeFilteringMode.Bilinear);
         edgeFilteringMode = ic.readEnum("edgeFilteringMode", EdgeFilteringMode.class, EdgeFilteringMode.Bilinear);
         shadowCompareMode = ic.readEnum("shadowCompareMode", CompareMode.class, CompareMode.Hardware);
         shadowCompareMode = ic.readEnum("shadowCompareMode", CompareMode.class, CompareMode.Hardware);
@@ -631,4 +631,4 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable
         oc.write(flushQueues, "flushQueues", false);
         oc.write(flushQueues, "flushQueues", false);
         oc.write(edgesThickness, "edgesThickness", 1.0f);
         oc.write(edgesThickness, "edgesThickness", 1.0f);
     }
     }
-}
+}