split: don't mutate data.args to keep client sync working (#508)
This commit is contained in:
parent
c3a7279da3
commit
6363cfdc3a
2 changed files with 7 additions and 3 deletions
|
|
@ -311,13 +311,12 @@ module.exports = {
|
|||
if (data.split) {
|
||||
|
||||
for (var j in data.split) {
|
||||
data.args = data.preArgs ? data.preArgs.concat(value[j]) : [value[j]]
|
||||
osc.send(host,port,data.split[j],data.args,data.precision)
|
||||
osc.send(host, port, data.split[j], data.preArgs ? data.preArgs.concat(value[j]) : [value[j]], data.precision)
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
osc.send(host,port,data.address,data.args,data.precision)
|
||||
osc.send(host, port, data.address, data.args, data.precision)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue