Is Index Pin always being respected?

Index Pin Unreliable (436.0 KB)
Command Pattern.vl (48.5 KB)

This video shows what I mean. The index pin should change the slot slot index and therefore the command that is executed, but it is always read as zero. When I connect my own int spread, the correct indices are used.

Gamma 2020.3.0127 preview

Thanks, looks like a bug, since it works if you put any node in between:


This is a known bug. I remember looking at it with @elias long time ago

Wow, interesting one. Internally the index variable needs to be re-declared inside the loop body to get captured correctly by delegate closures. Could be that this was a regression introduced with the move to the C# backend. Anyways, it’s fixed in upcoming builds.


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.