Browse Source

Update babylon.spriteManager.ts

Fix check for undefined
Pavel 8 năm trước cách đây
mục cha
commit
9468f09f0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Sprites/babylon.spriteManager.ts

+ 1 - 1
src/Sprites/babylon.spriteManager.ts

@@ -52,7 +52,7 @@
             if (cellSize.width && cellSize.height) {
                 this.cellWidth = cellSize.width;
                 this.cellHeight = cellSize.height;
-            } else if(cellSize === undefined) {
+            } else if(cellSize !== undefined) {
                 this.cellWidth = cellSize;
                 this.cellHeight = cellSize;
             } else {