From b4737b02066dd3bf270c7eaf0effbcafa2c9ad64 Mon Sep 17 00:00:00 2001 From: Teencrusher Date: Tue, 16 Feb 2016 13:38:37 -0500 Subject: [PATCH] Fixed indirect light extraction in Material --- jme3-core/src/main/java/com/jme3/material/Material.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/material/Material.java b/jme3-core/src/main/java/com/jme3/material/Material.java index edf451d4f..7a86031b5 100644 --- a/jme3-core/src/main/java/com/jme3/material/Material.java +++ b/jme3-core/src/main/java/com/jme3/material/Material.java @@ -713,12 +713,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { ambientLightColor.addLocal(l.getColor()); if(removeLights){ lightList.remove(l); + j--; } } if (l instanceof LightProbe) { probe = (LightProbe)l; if(removeLights){ lightList.remove(l); + j--; } } }