Skip to content

Commit 34c13d2

Browse files
committed
Update vanillaAnimation.ts
1 parent 51cf118 commit 34c13d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/exporters/vanillaAnimation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,14 +921,14 @@ async function createMCFile(
921921
return { pos, rot } as aj.AnimationFrameBone
922922
}
923923

924-
function generateBoneTrees(boneObject: aj.BoneObject) {
924+
function generateBoneTrees() {
925925
const animationTree = generateTree(animation.frames)
926926
if (animationTree.type === 'leaf')
927927
throw new Error(
928928
`Invalid top-level TreeLeaf for animation ${animation.name}`
929929
)
930930
const boneTrees = Object.fromEntries(
931-
Object.keys(boneObject).map((v) => [
931+
Object.keys(bones).map((v) => [
932932
v,
933933
{
934934
root: { v: '', trimmed: false },
@@ -937,7 +937,7 @@ async function createMCFile(
937937
])
938938
)
939939

940-
for (const boneName of Object.keys(boneObject)) {
940+
for (const boneName of Object.keys(bones)) {
941941
interface TreeReturn {
942942
v: string
943943
trimmed: boolean
@@ -1077,7 +1077,7 @@ async function createMCFile(
10771077
return boneTrees
10781078
}
10791079

1080-
const boneTrees = generateBoneTrees(bones)
1080+
const boneTrees = generateBoneTrees()
10811081
console.groupCollapsed('Bone Tree')
10821082
console.log(boneTrees)
10831083
console.groupEnd()

0 commit comments

Comments
 (0)