Преглед на файлове

changed excludeWithLayerMask test

jeff Palmer преди 10 години
родител
ревизия
754ddbd189
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
             }