From b7b24a21404ba00a3b469be23eb3524c4fec29dd Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 22 Apr 2026 19:45:21 +0900 Subject: [PATCH] Update books.ts --- packages/frontend/src/world/room/objects/books.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/world/room/objects/books.ts b/packages/frontend/src/world/room/objects/books.ts index 4232254cdd..f61ce8fd52 100644 --- a/packages/frontend/src/world/room/objects/books.ts +++ b/packages/frontend/src/world/room/objects/books.ts @@ -25,6 +25,7 @@ export const books = defineObject({ placement: 'top', hasCollisions: false, hasTexture: true, + canPreMeshesMerging: false, createInstance: ({ scene, options, model }) => { const coverMaterial = model.findMaterial('__X_COVER__'); @@ -54,14 +55,16 @@ export const books = defineObject({ ]; for (const meshes of bookMeshes) { - const z = Math.random() * cm(0.005); - const y = Math.random() * cm(0.0025); + const z = Math.random() * 0.005; + const y = Math.random() * 0.0025; for (const mesh of meshes) { mesh.position.z -= z; mesh.position.y += y; } } + model.updated(); + return { onOptionsUpdated: ([k, v]) => { applyVariation();