1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-26 12:34:30 +02:00
This commit is contained in:
syuilo
2026-04-02 14:15:52 +09:00
parent a01bbf828d
commit ea8df304c9
22 changed files with 193 additions and 147 deletions

View File

@@ -40,13 +40,13 @@ export const blind = defineObject({
},
},
placement: 'bottom',
createInstance: ({ options, loaderResult, meshUpdated }) => {
createInstance: ({ options, model }) => {
const temp = createOverridedStates({
angle: () => options.angle,
open: () => options.open,
});
const blade = loaderResult.meshes[0].getChildMeshes().find(m => m.name === 'Blade') as BABYLON.Mesh;
const blade = model.root.getChildMeshes().find(m => m.name === 'Blade') as BABYLON.Mesh;
blade.rotation = new BABYLON.Vector3(options.angle, 0, 0);
let blades = [] as BABYLON.Mesh[];
@@ -67,7 +67,7 @@ export const blind = defineObject({
blades.push(b);
}
meshUpdated();
model.updated();
};
const applyAngle = () => {