Sfoglia il codice sorgente

changed excludeWithLayerMask test

jeff Palmer 10 anni fa
parent
commit
754ddbd189
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Babylon/Lights/babylon.light.ts

+ 1 - 1
Babylon/Lights/babylon.light.ts

@@ -71,7 +71,7 @@
             }
             }
 
 
 
 
-            if (this.excludeWithLayerMask !== 0 && this.excludeWithLayerMask === mesh.layerMask) {
+            if (this.excludeWithLayerMask !== 0 && this.excludeWithLayerMask & mesh.layerMask) {
                 return false;
                 return false;
             }
             }