From 85ae7c7efc3044b246ea28fa8645c2f74c8701c6 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 16 May 2026 06:56:38 +0900 Subject: [PATCH] Update engine.ts --- packages/frontend/src/world/room/engine.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/world/room/engine.ts b/packages/frontend/src/world/room/engine.ts index b5ca4cc722..35c8dfdf00 100644 --- a/packages/frontend/src/world/room/engine.ts +++ b/packages/frontend/src/world/room/engine.ts @@ -1319,7 +1319,7 @@ export class RoomEngine extends EventEmitter { BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT, ); const keys = [ - { frame: 0, value: new BABYLON.Vector3(1, 1.2, 1) }, + { frame: 0, value: new BABYLON.Vector3(0.8, 1.2, 0.8) }, { frame: 60, value: new BABYLON.Vector3(1, 1, 1) }, ]; animTarget.setKeys(keys); @@ -1329,7 +1329,7 @@ export class RoomEngine extends EventEmitter { selectedObject.animations.push(animTarget); const animating = Promise.withResolvers(); const animationObserver = this.scene.onAfterAnimationsObservable.add(() => { - this.sr.updateMesh(selectedObject.getChildMeshes(), false); + this.sr.updateMesh(selectedObject.getChildMeshes(), true); }); this.scene.beginAnimation(selectedObject, 0, 60, false, 3, () => { animating.resolve(); }); @@ -1560,7 +1560,7 @@ export class RoomEngine extends EventEmitter { BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT, ); const keys = [ - { frame: 0, value: new BABYLON.Vector3(1, 1.2, 1) }, + { frame: 0, value: new BABYLON.Vector3(0.8, 1.2, 0.8) }, { frame: 60, value: new BABYLON.Vector3(1, 1, 1) }, ]; animTarget.setKeys(keys); @@ -1569,7 +1569,7 @@ export class RoomEngine extends EventEmitter { animTarget.setEasingFunction(easing); root.animations.push(animTarget); const animationObserver = this.scene.onAfterAnimationsObservable.add(() => { - this.sr.updateMesh(root.getChildMeshes(), false); + this.sr.updateMesh(root.getChildMeshes(), true); }); this.scene.beginAnimation(root, 0, 60, false, 3, () => { this.scene.onAfterAnimationsObservable.remove(animationObserver);