mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix spaces in keyframe exporting as NaN
This commit is contained in:
parent
654a679f72
commit
cc111a83c9
@ -744,7 +744,8 @@ class Keyframe {
|
|||||||
if (!this[axis]) {
|
if (!this[axis]) {
|
||||||
return this.transform ? 0 : '';
|
return this.transform ? 0 : '';
|
||||||
} else if (!isNaN(this[axis])) {
|
} else if (!isNaN(this[axis])) {
|
||||||
return parseFloat(this[axis])
|
let num = parseFloat(this[axis]);
|
||||||
|
return isNaN(num) ? 0 : num;
|
||||||
} else {
|
} else {
|
||||||
return this[axis]
|
return this[axis]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user