소스 검색

Fixed SubMesh::updateBoundingInfo

Gwenaël Hagenmuller 11 년 전
부모
커밋
804ebea924
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      Babylon/Mesh/babylon.subMesh.js
  2. 3 0
      Babylon/Mesh/babylon.subMesh.ts
  3. 1 1
      Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJS/ourOwnBabylon.js

+ 3 - 0
Babylon/Mesh/babylon.subMesh.js

@@ -52,6 +52,9 @@
         };
 
         SubMesh.prototype.updateBoundingInfo = function (world) {
+            if (!this._boundingInfo) {
+                this.refreshBoundingInfo();
+            }
             this._boundingInfo._update(world);
         };
 

+ 3 - 0
Babylon/Mesh/babylon.subMesh.ts

@@ -56,6 +56,9 @@
         }
 
         public updateBoundingInfo(world: Matrix): void {
+            if (!this._boundingInfo) {
+                this.refreshBoundingInfo();
+            }
             this._boundingInfo._update(world);
         }
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJS/ourOwnBabylon.js