From 4813ea5afc09b4021e98955ede1cbbbd04a8a611 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 3 Apr 2026 20:51:40 +0900 Subject: [PATCH] wip --- .../src/utility/room/objects/tabletopDigitalClock.ts | 2 ++ packages/frontend/src/utility/room/objects/wallClock.ts | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/utility/room/objects/tabletopDigitalClock.ts b/packages/frontend/src/utility/room/objects/tabletopDigitalClock.ts index b13140a151..3e54b850ae 100644 --- a/packages/frontend/src/utility/room/objects/tabletopDigitalClock.ts +++ b/packages/frontend/src/utility/room/objects/tabletopDigitalClock.ts @@ -67,6 +67,8 @@ export const tabletopDigitalClock = defineObject({ const colonMeshes = model.findMeshes('__TIME_7SEG_COLON__'); + model.bakeExcludeMeshes = Object.values(segmentMeshes).concat(colonMeshes); + const bodyMesh = model.findMesh('__X_BODY__'); const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial; diff --git a/packages/frontend/src/utility/room/objects/wallClock.ts b/packages/frontend/src/utility/room/objects/wallClock.ts index 8976d98b79..bd7db58f30 100644 --- a/packages/frontend/src/utility/room/objects/wallClock.ts +++ b/packages/frontend/src/utility/room/objects/wallClock.ts @@ -22,6 +22,9 @@ export const wallClock = defineObject({ }, placement: 'side', createInstance: ({ room, root, options, model }) => { + const hourHand = model.findMesh('HandH'); + const minuteHand = model.findMesh('HandM'); + const frameMaterial = model.findMaterial('__X_FRAME__'); const applyFrameColor = () => { @@ -31,10 +34,10 @@ export const wallClock = defineObject({ applyFrameColor(); + model.bakeExcludeMeshes = [hourHand, minuteHand]; + return { onInited: () => { - const hourHand = root.getChildMeshes().find(m => m.name === 'HandH') as BABYLON.Mesh; - const minuteHand = root.getChildMeshes().find(m => m.name === 'HandM') as BABYLON.Mesh; room.intervalIds.push(window.setInterval(() => { const now = new Date(); const hours = now.getHours() % 12;