input: when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore

This commit is contained in:
jean-emmanuel 2017-10-05 11:01:52 +02:00
parent 39ae150a81
commit b67513625d
2 changed files with 4 additions and 2 deletions

View file

@ -154,12 +154,14 @@ module.exports = class Input extends _canvas_base {
for (var i=widget.length-1; i>=0; i--) {
if (widget[i].setValue) {
widget[i].setValue(this.value, options)
this.setValue(widget[i].getValue(), {...options, internal:true})
this.setValue(widget[i].getValue(), {...options, internal:true, sentOnce:options.send})
return
}
}
}
if (options.sentOnce) options.send = false
this.stringValue = this.getStringValue()
this.draw()