- [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,9 +91,9 @@ if !ready exit;
var amo = 0;
switch(txt) {
case "Welcome Files" : amo = ds_list_size(SAMPLE_PROJECTS); break;
case "Workshop" : amo = ds_list_size(STEAM_PROJECTS); break;
case "Contests" : dtxt = ""; break;
case "Welcome Files" : break;
case "Workshop" : amo = ds_list_size(STEAM_PROJECTS); break;
case "Contests" : dtxt = ""; break;
}
var tw = ui(16) + string_width(dtxt);

View File

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