1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 14:05:35 +02:00

Update woodRingsPendantLight.ts

This commit is contained in:
syuilo
2026-04-21 11:24:43 +09:00
parent ddafd9e517
commit b300f9620c

View File

@@ -107,7 +107,7 @@ export const woodRingsPendantLight = defineObject({
const codeMesh = model.findMesh('__X_CODE__');
const applyLength = () => {
mainNode.position.y = -remap(options.length, 0, 1, 0, 200) / WORLD_SCALE;
mainNode.position.y = -remap(options.length, 0, 1, 0, cm(200)) / WORLD_SCALE;
codeMesh.morphTargetManager!.getTargetByName('Length')!.influence = options.length;
model.updated();
};