osc receiver: allow receiving object args such as osc color args (#623)
This commit is contained in:
parent
c048ede064
commit
fad234301f
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ module.exports = class OscReceiver {
|
|||
|
||||
callback(args) {
|
||||
|
||||
if (typeof args !== 'object') args = [args]
|
||||
if (!Array.isArray(args)) args = [args]
|
||||
var preArgs = this.usePreArgs ? (this.parent.getProp('preArgs') || []) : []
|
||||
if (!Array.isArray(preArgs) && preArgs !== '') preArgs = [preArgs]
|
||||
if (args.length >= preArgs.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue