From babb2cdce89b0fe06219aae4af70bb7fe2dc7ad0 Mon Sep 17 00:00:00 2001 From: sgold Date: Thu, 13 Mar 2014 08:49:54 +0000 Subject: [PATCH] Bugfix: issue #613 (ClassCastException during read) in trunk git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@11078 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java b/engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java index 094291a95..5df548535 100644 --- a/engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java +++ b/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); assetManager = im.getAssetManager(); nbShadowMaps = ic.readInt("nbShadowMaps", 1); - shadowMapSize = ic.readInt("shadowMapSize", 0); + shadowMapSize = ic.readFloat("shadowMapSize", 0f); shadowIntensity = ic.readFloat("shadowIntensity", 0.7f); edgeFilteringMode = ic.readEnum("edgeFilteringMode", EdgeFilteringMode.class, EdgeFilteringMode.Bilinear); 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(edgesThickness, "edgesThickness", 1.0f); } -} +} \ No newline at end of file