remote control: add /EDIT/GET, and a nosync flag in server/osc/sending method to prevent broadcasting
This commit is contained in:
parent
185d4c6b80
commit
a263233bbd
3 changed files with 22 additions and 3 deletions
|
|
@ -192,7 +192,7 @@ module.exports = {
|
|||
|
||||
var targets = []
|
||||
|
||||
if (settings.read('syncTargets')) Array.prototype.push.apply(targets, settings.read('syncTargets'))
|
||||
if (settings.read('syncTargets') && !data.nosync) Array.prototype.push.apply(targets, settings.read('syncTargets'))
|
||||
if (data.target) Array.prototype.push.apply(targets, data.target)
|
||||
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ module.exports = {
|
|||
|
||||
}
|
||||
|
||||
clients[clientId].broadcast.emit('receiveOsc', data)
|
||||
if (!data.nosync) clients[clientId].broadcast.emit('receiveOsc', data)
|
||||
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue