1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 04:04:56 +02:00
This commit is contained in:
syuilo
2026-02-25 19:15:26 +09:00
parent 08667b4d35
commit a8456a45ab
11 changed files with 32 additions and 24 deletions

View File

@@ -21,8 +21,8 @@ export const bed = defineObject({
},
},
placement: 'floor',
createInstance: ({ options, root }) => {
const bodyMesh = root.getChildMeshes().find(m => m.name.includes('__X_BODY__')) as BABYLON.Mesh;
createInstance: ({ options, findMesh }) => {
const bodyMesh = findMesh('__X_BODY__');
const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial;
const applyColor = () => {