- [Node] Fix error when separate axis.

This commit is contained in:
Tanasart 2024-07-03 10:24:37 +07:00
parent 993463204a
commit b8f12c43b7
2 changed files with 4 additions and 6 deletions

View file

@ -91,7 +91,7 @@ if !ready exit;
var amo = 0; var amo = 0;
switch(txt) { switch(txt) {
case "Welcome Files" : amo = ds_list_size(SAMPLE_PROJECTS); break; case "Welcome Files" : break;
case "Workshop" : amo = ds_list_size(STEAM_PROJECTS); break; case "Workshop" : amo = ds_list_size(STEAM_PROJECTS); break;
case "Contests" : dtxt = ""; break; case "Contests" : dtxt = ""; break;
} }

View file

@ -1264,9 +1264,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
if(!is_anim) { if(!is_anim) {
if(sep_axis) { if(sep_axis) {
if(ds_list_empty(animators[i].values)) return 0; var val = array_create(array_length(animators));
var val = array_verify(val, array_length(animators));
for( var i = 0, n = array_length(animators); i < n; i++ ) for( var i = 0, n = array_length(animators); i < n; i++ )
val[i] = animators[i].processType(animators[i].values[| 0].value); val[i] = animators[i].processType(animators[i].values[| 0].value);
return val; return val;