osc receivers: trigger update even when receiving the same value
This commit is contained in:
parent
1407ae116b
commit
5b3671aae0
1 changed files with 5 additions and 7 deletions
|
|
@ -41,14 +41,12 @@ module.exports = class OscReceiver {
|
|||
}
|
||||
var val = args.slice(preArgs.length)
|
||||
if (val.length < 2) val = val[0]
|
||||
if (val !== this.value) {
|
||||
try {
|
||||
this.value = JSON.parse(val)
|
||||
} catch (err) {
|
||||
this.value = val
|
||||
}
|
||||
this.parent.updateProps([this.propName], this.parent)
|
||||
try {
|
||||
this.value = JSON.parse(val)
|
||||
} catch (err) {
|
||||
this.value = val
|
||||
}
|
||||
this.parent.updateProps([this.propName], this.parent)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue