diff --git a/CHANGELOG.md b/CHANGELOG.md index f3b71a44..fc209d57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - bug fixes - multixy: doubleTap not working on touch devices - button: `x` and `y` variables not passed to `onValue` when `doubleTap` is true on touch devices + - advanced syntax: update issue with clones using their own value in their properties + ## 1.24.2 diff --git a/src/client/managers/widgets.js b/src/client/managers/widgets.js index 0141e216..f758a945 100644 --- a/src/client/managers/widgets.js +++ b/src/client/managers/widgets.js @@ -45,12 +45,17 @@ class WidgetManager extends EventEmitter { widgetsByLinkId = linkId ? this.getWidgetByLinkId(linkId) : [] // Widget that share the same id will update each other - // without sending any extra osc message + // without sending any extra osc message or running scripts if (widgetsById.length > 1) { let v = widget.getValue() for (let i in widgetsById) { if (widgetsById[i] !== widget) { widgetsById[i].setValue(v,{send:false,sync:false, id}) + // Because of sync:false, updated widgets that use @{this} + // in their properties wont update them, we trigger it manually + if (widgetsById[i].linkedPropsValue['this']) { + widgetsById[i].onLinkedPropsChanged({id, widget: widgetsById[i], options: {send: false, sync: false, id}}, 'value-changed') + } } } }