mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-23 16:31:20 +08:00
Fix issue with keyframe order in bedrock exports
This commit is contained in:
parent
2bfafac90d
commit
aab79b3d32
@ -171,11 +171,11 @@ class Animation {
|
||||
bone_tag[channel] = channels[channel][timecodes[0]][0];
|
||||
}
|
||||
} else {
|
||||
timecodes.sort().forEach((time) => {
|
||||
timecodes.sort((a, b) => parseFloat(a) - parseFloat(b)).forEach((timecode) => {
|
||||
if (!bone_tag[channel]) {
|
||||
bone_tag[channel] = {}
|
||||
}
|
||||
bone_tag[channel][time] = channels[channel][time]
|
||||
bone_tag[channel][timecode] = channels[channel][timecode];
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user