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;