Fix line colors
This commit is contained in:
parent
b3a05944e9
commit
7b28257d3f
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue