From cecf807001ac5f7da36b041c2d010d94c85f5e53 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 9 Apr 2012 07:35:20 +0000 Subject: [PATCH] SpotLight, inner and outer angle cos is now correctly packed when opening a saved light git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9280 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/light/SpotLight.java | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/core/com/jme3/light/SpotLight.java b/engine/src/core/com/jme3/light/SpotLight.java index 4c653a5ee..7c0a66afb 100644 --- a/engine/src/core/com/jme3/light/SpotLight.java +++ b/engine/src/core/com/jme3/light/SpotLight.java @@ -206,6 +206,7 @@ public class SpotLight extends Light implements Savable { InputCapsule ic = im.getCapsule(this); spotInnerAngle = ic.readFloat("spotInnerAngle", FastMath.QUARTER_PI / 8); spotOuterAngle = ic.readFloat("spotOuterAngle", FastMath.QUARTER_PI / 6); + computePackedCos(); direction = (Vector3f) ic.readSavable("direction", new Vector3f()); position = (Vector3f) ic.readSavable("position", new Vector3f()); spotRange = ic.readFloat("spotRange", 100);