Skip to content

Commit bb18432

Browse files
authored
Update LightsDebugState.java
1 parent 32baa2b commit bb18432

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ private void updateGizmoProperties(Light light, Spatial gizmo) {
292292
// Update texture if probe is ready
293293
if (probe.isReady()) {
294294
Material mat = probeGeom.getMaterial();
295-
if (mat.getTextureParam("CubeMap") == null ||
296-
(!probe.getPrefilteredEnvMap().equals(mat.getTextureParam("CubeMap").getTextureValue()))) {
295+
if (mat.getTextureParam("CubeMap") == null) {
297296
mat.setTexture("CubeMap", probe.getPrefilteredEnvMap());
298297
}
299298
}

0 commit comments

Comments
 (0)