Sfoglia il codice sorgente

Update LightsDebugState.java

Wyatt Gillette 3 mesi fa
parent
commit
bb184321e0

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

@@ -292,8 +292,7 @@ public class LightsDebugState extends BaseAppState {
                 // Update texture if probe is ready
                 if (probe.isReady()) {
                     Material mat = probeGeom.getMaterial();
-                    if (mat.getTextureParam("CubeMap") == null ||
-                            (!probe.getPrefilteredEnvMap().equals(mat.getTextureParam("CubeMap").getTextureValue()))) {
+                    if (mat.getTextureParam("CubeMap") == null) {
                         mat.setTexture("CubeMap", probe.getPrefilteredEnvMap());
                     }
                 }