jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
701 stars 88 forks source link

[Bug] Matrix children props not updating correctly when referencing other widget #701

Closed akaztp closed 3 years ago

akaztp commented 3 years ago

How to reproduce:

bug-session.txt

Thank you!

jean-emmanuel commented 3 years ago

Could you please provide more information and step by step instructions to reproduce the issue ?

akaztp commented 3 years ago

I've updated the first post. It was a too soon "ENTER" typo...

jean-emmanuel commented 3 years ago

You've hit a limitation with the advanced syntaxes + matrices : to determine whether the props property has changed, OSC evaluates its content with $ equals to 0 and compares it to the last cached result, hence the issue not occurring when pushing the first button (whose index is 0).

To circumvent the issue you can either:

akaztp commented 3 years ago

Thanks for your fast and thorough response. I've managed to solve it by adding the props "_forceUpdate": @{matrix-source} instead of the random!

jean-emmanuel commented 3 years ago

Works too ! :)