David Catuhe 5 năm trước cách đây
mục cha
commit
59462f8205
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      dist/preview release/babylon.js
  2. 1 1
      src/Sprites/spriteManager.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 1
src/Sprites/spriteManager.ts

@@ -463,7 +463,7 @@ export class SpriteManager implements ISpriteManager {
 
                 if (distance > currentDistance) {
 
-                    if (!this._checkTextureAlpha(sprite, ray, distance, min, max)) {
+                    if (!this._checkTextureAlpha(sprite, ray, currentDistance, min, max)) {
                         continue;
                     }