소스 검색

Update LightsDebugState.java

Wyatt Gillette 3 달 전
부모
커밋
bb184321e0
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java

+ 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());
                     }
                 }