Przeglądaj źródła

Create babylon.abstractMesh.ts

KK 8 lat temu
rodzic
commit
e88ef8e99f
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/Mesh/babylon.abstractMesh.ts

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

@@ -1162,8 +1162,6 @@
 
             // Parent
             if (this.parent && this.parent.getWorldMatrix) {
-                this._markSyncedWithParent();
-
                 if (this.billboardMode !== AbstractMesh.BILLBOARDMODE_NONE) {
                     if (this._meshToBoneReferal) {
                         this.parent.getWorldMatrix().multiplyToRef(this._meshToBoneReferal.getWorldMatrix(), Tmp.Matrix[6]);
@@ -1185,6 +1183,7 @@
                         this._localWorld.multiplyToRef(this.parent.getWorldMatrix(), this._worldMatrix);
                     }
                 }
+                this._markSyncedWithParent();
             } else {
                 this._worldMatrix.copyFrom(this._localWorld);
             }