1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 19:13:58 +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

@@ -33,7 +33,7 @@ export const wallShelf = defineObject({
},
},
placement: 'side',
createInstance: ({ room, options, root }) => {
createInstance: ({ findMesh, options, root }) => {
const applyStyle = () => {
const aMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_A__'));
const bMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_B__'));
@@ -56,7 +56,7 @@ export const wallShelf = defineObject({
applyStyle();
const bodyMesh = root.getChildMeshes().find(m => m.name.includes('__X_BODY__')) as BABYLON.Mesh;
const bodyMesh = findMesh('__X_BODY__');
const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial;
const bodyTexture = bodyMaterial.albedoTexture as BABYLON.Texture;