diff --git a/src/bezier.js b/src/bezier.js index 637cf3a..e69f874 100644 --- a/src/bezier.js +++ b/src/bezier.js @@ -1109,13 +1109,16 @@ class Bezier { } static fromJSON(json) { - return new Bezier(...json) + return json[8] ? new Bezier(...json.slice(0, 8)).setColor(json[8]) : new Bezier(...json.slice(0, 8)); } toJSON() { - return [this.points[0].x, this.points[0].y, + return [ + this.points[0].x, this.points[0].y, this.points[1].x, this.points[1].y, this.points[2].x, this.points[2].y, - this.points[3].x, this.points[3].y] + this.points[3].x, this.points[3].y, + this.color + ] } static getUtils() { diff --git a/src/main.js b/src/main.js index b843fb3..886de6e 100644 --- a/src/main.js +++ b/src/main.js @@ -4371,7 +4371,7 @@ async function _save(path) { // console.log(action.name); // } const fileData = { - version: "1.7.5", + version: "1.7.6", width: config.fileWidth, height: config.fileHeight, fps: config.framerate,