Fix spaces in keyframe exporting as NaN

This commit is contained in:
JannisX11 2020-08-16 13:35:19 +02:00
parent 654a679f72
commit cc111a83c9

View File

@ -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]
} }