- Fix saving multiple projects with close button override all save file with current project.

This commit is contained in:
Tanasart 2023-09-20 18:36:56 +02:00
parent b22d506a61
commit 68f19cd5d5
2 changed files with 1 additions and 3 deletions

View file

@ -239,12 +239,10 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
wght = 1; wght = 1;
if(_useDistance) { if(_useDistance) {
p = _pat.getPointDistance(_prog_curr, i); p = _pat.getPointDistance(_prog_curr, i);
if(struct_has(_pat, "getWeightRatio")) if(struct_has(_pat, "getWeightRatio"))
wght = _pat.getWeightRatio(_prog_curr, i); wght = _pat.getWeightRatio(_prog_curr, i);
} else { } else {
p = _pat.getPointRatio(_prog_curr, i); p = _pat.getPointRatio(_prog_curr, i);
if(struct_has(_pat, "getWeightDistance")) if(struct_has(_pat, "getWeightDistance"))
wght = _pat.getWeightDistance(_prog_curr, i); wght = _pat.getWeightDistance(_prog_curr, i);
} }

View file

@ -109,7 +109,7 @@ function SAVE_AT(project = PROJECT, path = "", log = "save at ") {
if(file_exists(path)) if(file_exists(path))
file_delete(path); file_delete(path);
var file = file_text_open_write(path); var file = file_text_open_write(path);
file_text_write_string(file, save_serialize()); file_text_write_string(file, save_serialize(project));
file_text_close(file); file_text_close(file);
SAVING = false; SAVING = false;