= 6 年之前
父节点
当前提交
35d93c17e2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Misc/meshExploder.ts

+ 2 - 2
src/Misc/meshExploder.ts

@@ -30,7 +30,7 @@ export class MeshExploder {
         if (this._meshes.indexOf(this._centerMesh) >= 0) {
             this._meshes.splice(this._meshes.indexOf(this._centerMesh), 1);
         }
-        this.udpatePositions();
+        this.updatePositions();
     }
 
     private _setCenterMesh(): void {
@@ -72,7 +72,7 @@ export class MeshExploder {
      * "Update Positions"
      * If meshes have moved, call this to update their stored origins.
      */
-    public udpatePositions(): void {
+    public updatePositions(): void {
         this._centerPosition = this._centerMesh.getAbsolutePosition().clone();
         for (var index = 0; index < this._meshes.length; index++) {
             if (this._meshes[index]) {