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();