mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
- [ASE File In] Add small delay before refreshing file to prevent overlapped read ("ASE file read error.").
This commit is contained in:
parent
4bd4997f23
commit
ac6a604465
1 changed files with 2 additions and 3 deletions
|
@ -230,7 +230,6 @@ function Node_ASE_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
}
|
}
|
||||||
|
|
||||||
path_current = path;
|
path_current = path;
|
||||||
edit_time = max(edit_time, file_get_modify_s(path_current));
|
|
||||||
|
|
||||||
var ext = string_lower(filename_ext(path));
|
var ext = string_lower(filename_ext(path));
|
||||||
var _name = filename_name_only(path);
|
var _name = filename_name_only(path);
|
||||||
|
@ -320,8 +319,8 @@ function Node_ASE_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
if(!file_exists_empty(path_current)) return;
|
if(!file_exists_empty(path_current)) return;
|
||||||
|
|
||||||
if(file_get_modify_s(path_current) > edit_time) {
|
if(file_get_modify_s(path_current) > edit_time) {
|
||||||
updatePaths();
|
edit_time = max(edit_time, file_get_modify_s(path_current));
|
||||||
triggerRender();
|
run_in(5, function() /*=>*/ { updatePaths(); triggerRender(); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue