Skip to content

Commit

Permalink
feature: add NO_SCALING option
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Feb 21, 2024
1 parent 87adbd4 commit 29a9970
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/LoadBVH.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const LoadBVH = (props: LoadBVHProps) => {
const fileText = await file.text();

const bvh = bvhLoader.parse(fileText);
const vrmaBuffer = await convertBVHToVRMAnimation(bvh);
const vrmaBuffer = await convertBVHToVRMAnimation(bvh, {
scale: location.hash.includes('NO_SCALING') ? 1.0 : 0.01
});

const vrmaDict: FileBlob = { blob: new Blob([vrmaBuffer]), name: file.name };
setBlobURL(URL.createObjectURL(vrmaDict.blob));
Expand Down

0 comments on commit 29a9970

Please sign in to comment.