Pārlūkot izejas kodu

Update babylon.abstractMesh.ts

aWeirdo 8 gadi atpakaļ
vecāks
revīzija
92db2b3d95
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/Mesh/babylon.abstractMesh.ts

+ 2 - 2
src/Mesh/babylon.abstractMesh.ts

@@ -181,7 +181,7 @@
         }
         
         public set collisionMask(mask: number) {
-            this._collisionMask = !isNaN(mask) ? mask : -1;
+            this._collisionMask = !isNaN(mask) ? mask : 0;
         }
         
         public get collisionGroup(): number {
@@ -189,7 +189,7 @@
         }
         
         public set collisionGroup(mask: number) {
-            this._collisionGroup = !isNaN(mask) ? mask : -1;
+            this._collisionGroup = !isNaN(mask) ? mask : 0;
         }
         
         // Attach to bone