浏览代码

Fixed SubMesh::updateBoundingInfo

Gwenaël Hagenmuller 11 年之前
父节点
当前提交
804ebea924

+ 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