From cc111a83c94e643866e9de1432c28aa4602573a1 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Sun, 16 Aug 2020 13:35:19 +0200 Subject: [PATCH] Fix spaces in keyframe exporting as NaN --- js/animations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/animations.js b/js/animations.js index c38d0ec6..71e13235 100644 --- a/js/animations.js +++ b/js/animations.js @@ -744,7 +744,8 @@ class Keyframe { if (!this[axis]) { return this.transform ? 0 : ''; } else if (!isNaN(this[axis])) { - return parseFloat(this[axis]) + let num = parseFloat(this[axis]); + return isNaN(num) ? 0 : num; } else { return this[axis] }