Skip to content

Commit 0856599

Browse files
committed
set refresh flag before light is removed
1 parent 9d90dc2 commit 0856599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/scene/Spatial.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,8 @@ public void addLight(Light light) {
12151215
* @see Spatial#addLight(com.jme3.light.Light)
12161216
*/
12171217
public void removeLight(Light light) {
1218-
localLights.remove(light);
12191218
setLightListRefresh();
1219+
localLights.remove(light);
12201220
}
12211221

12221222
/**

0 commit comments

Comments
 (0)