From 528ed8d01420adcde0f6a00cb5e9f40ebb46051f Mon Sep 17 00:00:00 2001 From: sgold Date: Thu, 13 Mar 2014 08:44:34 +0000 Subject: [PATCH] Bugfix: issue #613 (ClassCastException during read) in gradle-restructure branch git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11077 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/main/java/com/jme3/shadow/AbstractShadowRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java index 094291a95..05a897ca1 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java +++ b/jme3-core/src/main/java/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);