Fix line colors

This commit is contained in:
Skyler Lehmkuhl 2025-01-15 21:14:51 -05:00
parent b3a05944e9
commit 7b28257d3f
2 changed files with 7 additions and 4 deletions

View File

@ -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() {

View File

@ -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,