mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Make catmullrom keyframes only export post again
Version ranges in modded entity format
This commit is contained in:
parent
874645678a
commit
9945e113d4
@ -224,11 +224,15 @@ class Keyframe {
|
||||
}
|
||||
compileBedrockKeyframe() {
|
||||
if (this.transform) {
|
||||
if (this.data_points.length == 1 && this.interpolation == 'linear') {
|
||||
if (this.interpolation != 'linear') {
|
||||
return {
|
||||
post: this.getArray(),
|
||||
lerp_mode: this.interpolation,
|
||||
}
|
||||
} else if (this.data_points.length == 1) {
|
||||
return this.getArray();
|
||||
} else {
|
||||
return new oneLiner({
|
||||
lerp_mode: this.interpolation != 'linear' ? this.interpolation : undefined,
|
||||
pre: this.getArray(0),
|
||||
post: this.getArray(1),
|
||||
})
|
||||
|
@ -12,7 +12,7 @@ function I(num) {
|
||||
}
|
||||
const Templates = {
|
||||
'1.12': {
|
||||
name: 'Forge 1.12',
|
||||
name: 'Forge 1.7 - 1.13',
|
||||
flip_y: true,
|
||||
integer_size: true,
|
||||
file:
|
||||
@ -96,7 +96,7 @@ const Templates = {
|
||||
},
|
||||
|
||||
'1.15': {
|
||||
name: 'Forge 1.15',
|
||||
name: 'Forge 1.15 - 1.16',
|
||||
flip_y: true,
|
||||
integer_size: false,
|
||||
file:
|
||||
|
Loading…
Reference in New Issue
Block a user