Fix #122121: index switch does not work in some cases

Looks like a copy paste error from the normal Switch node.
This commit is contained in:
Jacques Lucke
2024-06-14 19:04:43 +02:00
parent 1bd97b8310
commit 811c75e8b7

View File

@@ -1215,7 +1215,7 @@ class LazyFunctionForIndexSwitchSocketUsage : public lf::LazyFunction {
}
}
else {
const int value = index_variant.get<bool>();
const int value = index_variant.get<int>();
for (const int i : outputs_.index_range()) {
params.set_output(i, i == value);
}