From b8f12c43b7f927e8ef7c6ae423b4e29d8e7a2b9a Mon Sep 17 00:00:00 2001 From: Tanasart Date: Wed, 3 Jul 2024 10:24:37 +0700 Subject: [PATCH] - [Node] Fix error when separate axis. --- objects/o_dialog_splash/Draw_64.gml | 6 +++--- scripts/node_value/node_value.gml | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/objects/o_dialog_splash/Draw_64.gml b/objects/o_dialog_splash/Draw_64.gml index b9d261391..33550ed85 100644 --- a/objects/o_dialog_splash/Draw_64.gml +++ b/objects/o_dialog_splash/Draw_64.gml @@ -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); diff --git a/scripts/node_value/node_value.gml b/scripts/node_value/node_value.gml index 94eadcd18..441f0597e 100644 --- a/scripts/node_value/node_value.gml +++ b/scripts/node_value/node_value.gml @@ -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;