mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
- [Switch] Fix inconsistent junction type switching.
This commit is contained in:
parent
f9e5e3ea9c
commit
4c8237fa9b
@ -106,7 +106,8 @@ function Node_Switch(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
||||
|
||||
if(sele == _cas) {
|
||||
_res = _val;
|
||||
outputs[| 0].setType(inputs[| i + 1].type);
|
||||
var _typ = inputs[| i + 1].value_from? inputs[| i + 1].value_from.type : inputs[| i + 1].type;
|
||||
outputs[| 0].setType(_typ);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user