File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
<p align =" center " ><img src =" https://user-images.githubusercontent.com/48780301/147949112-1929eeeb-e8e6-412d-886e-5b3d6615886f.png " width =" 256 " alt =" Animated Java Logo " ></img ></p >
2
2
<h1 align =" center " >Animated Java<br >
3
3
<a href =" https://discord.gg/jFgY4PXZfp " ><img src =" https://img.shields.io/discord/785339959518953482?color=5865f2&label=Discord&style=flat " alt =" Discord " ></a >
4
- <a href =" https://www.patreon.com/animatedjava " ><img src =" https://img.shields.io/badge/Supporters-1-ff5733 " alt =" Patreon " ></a >
5
4
</h1 >
6
5
7
6
Welcome to Animated Java, A tool for mapmakers to create smooth, and detailed animations for Minecraft Java Edition.
Original file line number Diff line number Diff line change @@ -921,14 +921,14 @@ async function createMCFile(
921
921
return { pos, rot } as aj . AnimationFrameBone
922
922
}
923
923
924
- function generateBoneTrees ( ) {
924
+ function generateBoneTrees ( boneObject : aj . BoneObject ) {
925
925
const animationTree = generateTree ( animation . frames )
926
926
if ( animationTree . type === 'leaf' )
927
927
throw new Error (
928
928
`Invalid top-level TreeLeaf for animation ${ animation . name } `
929
929
)
930
930
const boneTrees = Object . fromEntries (
931
- Object . keys ( bones ) . map ( ( v ) => [
931
+ Object . keys ( boneObject ) . map ( ( v ) => [
932
932
v ,
933
933
{
934
934
root : { v : '' , trimmed : false } ,
@@ -937,7 +937,7 @@ async function createMCFile(
937
937
] )
938
938
)
939
939
940
- for ( const boneName of Object . keys ( bones ) ) {
940
+ for ( const boneName of Object . keys ( boneObject ) ) {
941
941
interface TreeReturn {
942
942
v : string
943
943
trimmed : boolean
@@ -1077,7 +1077,7 @@ async function createMCFile(
1077
1077
return boneTrees
1078
1078
}
1079
1079
1080
- const boneTrees = generateBoneTrees ( )
1080
+ const boneTrees = generateBoneTrees ( bones )
1081
1081
console . groupCollapsed ( 'Bone Tree' )
1082
1082
console . log ( boneTrees )
1083
1083
console . groupEnd ( )
You can’t perform that action at this time.
0 commit comments