diff --git a/jme3-core/src/main/java/com/jme3/light/LightProbe.java b/jme3-core/src/main/java/com/jme3/light/LightProbe.java index 1cc713445..2b962fc97 100644 --- a/jme3-core/src/main/java/com/jme3/light/LightProbe.java +++ b/jme3-core/src/main/java/com/jme3/light/LightProbe.java @@ -127,15 +127,13 @@ public class LightProbe extends Light implements Savable { public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); - - + prefilteredEnvMap = (TextureCubeMap) ic.readSavable("prefilteredEnvMap", null); - position = (Vector3f) ic.readSavable("position", this); + position = (Vector3f) ic.readSavable("position", null); bounds = (BoundingVolume) ic.readSavable("bounds", new BoundingSphere(1.0f, Vector3f.ZERO)); nbMipMaps = ic.readInt("nbMipMaps", 0); ready = ic.readBoolean("ready", false); - Savable[] coeffs = ic.readSavableArray("shCoeffs", null); if (coeffs == null) { ready = false; @@ -145,7 +143,6 @@ public class LightProbe extends Light implements Savable { for (int i = 0; i < coeffs.length; i++) { shCoeffs[i] = (Vector3f) coeffs[i]; } - } }