osc-listener: osc listeners not resolving "auto" address
This commit is contained in:
parent
16b634cb06
commit
197a0e7082
2 changed files with 8 additions and 4 deletions
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
## 1.6.3
|
||||
|
||||
- editor
|
||||
- add console panel under the inspector to ease debugging
|
||||
|
||||
- bug fixes
|
||||
- missing context menu (copy, paste) in inspector inputs
|
||||
- osc listeners not resolving "auto" address
|
||||
|
||||
- editor
|
||||
- add console panel under the inspector to ease debugging
|
||||
|
||||
- widgets
|
||||
- keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom))
|
||||
|
|
|
|||
|
|
@ -36,7 +36,10 @@ module.exports = class OscReceiver {
|
|||
|
||||
if (this.address[0] !== '/') {
|
||||
var parentAddress = this.parent.getProp('address') || this.parent.resolveProp('address', undefined, false, this)
|
||||
if (parentAddress === 'auto') parentAddress = '/' + this.parent.getProp('id')
|
||||
if (parentAddress === 'auto') {
|
||||
var id = this.parent.getProp('id') || this.parent.resolveProp('id', undefined, false, this)
|
||||
parentAddress = '/' + id
|
||||
}
|
||||
this.prefix = parentAddress
|
||||
if (this.prefix[this.prefix.length - 1] !== '/') this.prefix += '/'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue