- [Switch] Fix inconsistent junction type switching.

This commit is contained in:
Tanasart 2023-11-23 08:41:08 +07:00
parent f9e5e3ea9c
commit 4c8237fa9b

View File

@ -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);
}
}