mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
- [Node] Fix error when separate axis.
This commit is contained in:
parent
993463204a
commit
b8f12c43b7
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue