From 9cf67b902e46dbc2e01f88cb3e8b28729730c5f4 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sun, 9 Oct 2016 10:00:18 +0200 Subject: [PATCH] Fixed SpotLight constructor to properly compute the invSpotRange see https://github.com/jMonkeyEngine/jmonkeyengine/issues/563 --- jme3-core/src/main/java/com/jme3/light/SpotLight.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/light/SpotLight.java b/jme3-core/src/main/java/com/jme3/light/SpotLight.java index 636f1447f..70115bbc5 100644 --- a/jme3-core/src/main/java/com/jme3/light/SpotLight.java +++ b/jme3-core/src/main/java/com/jme3/light/SpotLight.java @@ -102,7 +102,7 @@ public class SpotLight extends Light { this(); setPosition(position); setDirection(direction); - this.spotRange = range; + setSpotRange(range); } /** @@ -133,7 +133,7 @@ public class SpotLight extends Light { computeAngleParameters(); setPosition(position); setDirection(direction); - this.spotRange = range; + setSpotRange(range); } /** @@ -158,7 +158,7 @@ public class SpotLight extends Light { computeAngleParameters(); setPosition(position); setDirection(direction); - this.spotRange = range; + setSpotRange(range); }