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

@@ -26,11 +26,11 @@ export const speaker = defineObject({
},
},
placement: 'top',
createInstance: ({ options, root }) => {
const outerMesh = root.getChildMeshes().find(m => m.name.includes('__X_COVER__')) as BABYLON.Mesh;
createInstance: ({ options, findMesh }) => {
const outerMesh = findMesh('__X_COVER__');
const outerMaterial = outerMesh.material as BABYLON.PBRMaterial;
const innerMesh = root.getChildMeshes().find(m => m.name.includes('__X_BODY__')) as BABYLON.Mesh;
const innerMesh = findMesh('__X_BODY__');
const innerMaterial = innerMesh.material as BABYLON.PBRMaterial;
const applyOuterColor = () => {