mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +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,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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue