Procházet zdrojové kódy

changed excludeWithLayerMask test

jeff Palmer před 10 roky
rodič
revize
754ddbd189
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
             }