mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
- [Animation] Fix node not load images in when create from add node dialog.
This commit is contained in:
parent
4c8237fa9b
commit
948c1caf90
@ -6,8 +6,8 @@ function Node_create_Image_Animated(_x, _y, _group = noone) { #region
|
||||
if(path == "") return noone;
|
||||
}
|
||||
|
||||
var node = new Node_Image_Animated(_x, _y, _group);
|
||||
var paths = paths_to_array(path);
|
||||
var node = new Node_Image_Animated(_x, _y, _group);
|
||||
var paths = string_splice(path, "\n");
|
||||
node.inputs[| 0].setValue(paths);
|
||||
node.doUpdate();
|
||||
|
||||
@ -102,7 +102,7 @@ function Node_Image_Animated(_x, _y, _group = noone) : Node(_x, _y, _group) cons
|
||||
function updatePaths(paths) { #region
|
||||
if(!is_array(paths) && ds_exists(paths, ds_type_list))
|
||||
paths = ds_list_to_array(paths);
|
||||
|
||||
|
||||
for(var i = 0; i < array_length(spr); i++) {
|
||||
if(spr[i] && sprite_exists(spr[i]))
|
||||
sprite_delete(spr[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user