vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
35 stars 14 forks source link

ImGui `Input (Int2..4)` troubles #622

Closed antongit closed 1 year ago

antongit commented 1 year ago

Describe the bug Input (Int2...Int4) widgets only change the first element, all other elements jump to default.

Is there an earlier version where this still works? It worked before Input widgets got their own state using the lastframevalue.

The problem is in these lines, because there is ref involved. Not sure what is the best way to solve it. https://github.com/vvvv/VL.StandardLibs/blob/37dce4c59a73bceed4f53d5bc24c76bfce14cbe1/VL.ImGui/src/Widgets/Input/InputInt2.cs#L27

To Reproduce ImGui_InputWidget_Bug.zip

Screenshots

ImGui_InputInt2_Bug