patchbay: address not working properly when set to auto

This commit is contained in:
jean-emmanuel 2024-09-05 19:22:42 +02:00
parent 04b7994e9a
commit 5d3f770e3b
2 changed files with 2 additions and 1 deletions

View file

@ -167,7 +167,7 @@ class PatchBay extends Container(Canvas) {
data: {
type: 'patchbaynode',
id: this.getProp('id') + '/' + this.inputs[k],
address: '@{parent.address}',
address: '#{@{parent.address} == "auto" ? "/" + @{parent.id} : @{parent.address}}',
target: '@{parent.target}',
preArgs: this.inputs[k],
bypass: '@{parent.bypass}',