1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 11:45:30 +02:00
This commit is contained in:
syuilo
2026-04-03 17:21:21 +09:00
parent df092dd120
commit 3873eb0cd7
2 changed files with 11 additions and 4 deletions

View File

@@ -17,9 +17,11 @@ export const ceilingFanLight = defineObject({
receiveShadows: false,
castShadows: false,
createInstance: ({ scene, model }) => {
const rotor = model.findMesh('Rotor');
model.bakeExcludeMeshes = [rotor, rotor.parent, ...rotor.getChildMeshes()];
return {
onInited: () => {
const rotor = model.findMesh('Rotor');
rotor.rotation = rotor.rotationQuaternion != null ? rotor.rotationQuaternion.toEulerAngles() : rotor.rotation;
const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);
anim.setKeys([