mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
- Fix saving multiple projects with close button override all save file with current project.
This commit is contained in:
parent
b22d506a61
commit
68f19cd5d5
2 changed files with 1 additions and 3 deletions
|
@ -239,12 +239,10 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
|
|||
wght = 1;
|
||||
if(_useDistance) {
|
||||
p = _pat.getPointDistance(_prog_curr, i);
|
||||
|
||||
if(struct_has(_pat, "getWeightRatio"))
|
||||
wght = _pat.getWeightRatio(_prog_curr, i);
|
||||
} else {
|
||||
p = _pat.getPointRatio(_prog_curr, i);
|
||||
|
||||
if(struct_has(_pat, "getWeightDistance"))
|
||||
wght = _pat.getWeightDistance(_prog_curr, i);
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ function SAVE_AT(project = PROJECT, path = "", log = "save at ") {
|
|||
if(file_exists(path))
|
||||
file_delete(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);
|
||||
|
||||
SAVING = false;
|
||||
|
|
Loading…
Reference in a new issue