From cc8e2e8977490253a09d0b3de0f71c32eba95011 Mon Sep 17 00:00:00 2001 From: neauoire Date: Sun, 15 Dec 2019 11:44:31 -0500 Subject: Allow empty OSC messages --- desktop/sources/scripts/core/io/osc.js | 1 - desktop/sources/scripts/core/library.js | 1 - 2 files changed, 2 deletions(-) (limited to 'desktop') diff --git a/desktop/sources/scripts/core/io/osc.js b/desktop/sources/scripts/core/io/osc.js index 2a605e8..635e2ea 100644 --- a/desktop/sources/scripts/core/io/osc.js +++ b/desktop/sources/scripts/core/io/osc.js @@ -31,7 +31,6 @@ function Osc (client) { this.play = function ({ path, msg }) { if (!this.socket) { console.warn('OSC', 'Unavailable socket'); return } - if (!msg) { console.warn('OSC', 'Empty message'); return } const oscMsg = new osc.Message(path) for (var i = 0; i < msg.length; i++) { oscMsg.append(client.orca.valueOf(msg.charAt(i))) diff --git a/desktop/sources/scripts/core/library.js b/desktop/sources/scripts/core/library.js index c43a226..361fc82 100644 --- a/desktop/sources/scripts/core/library.js +++ b/desktop/sources/scripts/core/library.js @@ -674,7 +674,6 @@ library['='] = function OperatorOsc (orca, x, y, passive) { } if (!this.hasNeighbor('*') && force === false) { return } - if (msg === '') { return } const path = this.listen(this.ports.path) -- cgit v1.2.3