David Catuhe 7 năm trước cách đây
mục cha
commit
614a81c940
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Mesh/babylon.mesh.ts

+ 2 - 1
src/Mesh/babylon.mesh.ts

@@ -831,7 +831,8 @@
 
             var data = this._getPositionData(applySkeleton);
             if (data) {
-                var extend = Tools.ExtractMinAndMax(data, 0, this.getTotalVertices());
+                const bias = this.geometry ? this.geometry.boundingBias : null;
+                var extend = Tools.ExtractMinAndMax(data, 0, this.getTotalVertices(), bias);
                 this._boundingInfo = new BoundingInfo(extend.minimum, extend.maximum);
             }