switcher: update linked widgets' osc properties before sending if they depend on the switcher's value (#344)

This commit is contained in:
jean-emmanuel 2018-08-01 18:35:31 +02:00
parent 87e2b165e5
commit 94beb77eb9
2 changed files with 8 additions and 2 deletions

View file

@ -4,13 +4,14 @@
- bug fixes
- widgets: dynamic `address` when `split` is `true`
- strip: missing osc properties (`address` and `preArgs`) for remote control
- switcher: update linked widgets' osc properties before sending if they depend on the switcher's value
## 0.34.3
- bug fixes
- launcher: regression breaking the `port` option
- strip: missing osc properties (`address` and `preArgs`) for remote control
## 0.34.2
- bug fixes

View file

@ -83,6 +83,11 @@ module.exports = class _switchers_base extends Widget {
applyState(state, options) {
// extra sync routine to ensure linked widgets' props update before osc is sent
if (options.sync) this.changed({...options, send:false, sync:false})
//
for (var id in state) {
var value = state[id],
widgets = widgetManager.getWidgetById(id)