Pārlūkot izejas kodu

Fixed SubMesh::updateBoundingInfo

Gwenaël Hagenmuller 11 gadi atpakaļ
vecāks
revīzija
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);
         }
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJS/ourOwnBabylon.js