= %!s(int64=6) %!d(string=hai) anos
pai
achega
a9d083ea52
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Meshes/explodedMesh.ts

+ 2 - 0
src/Meshes/explodedMesh.ts

@@ -31,6 +31,7 @@ export class ExplodedMesh extends Mesh {
         } else {
             this._setCenterMesh();
         }
+        this._centerMesh.computeWorldMatrix();
         if (this._centerMesh._boundingInfo) {
             this._centerOrigin = this._centerMesh._boundingInfo.boundingBox.centerWorld;
         } else {
@@ -43,6 +44,7 @@ export class ExplodedMesh extends Mesh {
             for (var index = 0; index < this._meshes.length; index++) {
                 if (this._meshes[index]) {
                     var mesh = this._meshes[index];
+                    mesh.computeWorldMatrix();
                     if (mesh._boundingInfo) {
                         var meshCenter = mesh._boundingInfo.boundingBox.centerWorld;
                         this._meshesOrigins.push(meshCenter.clone());