editor: incremental pasting issue with address property

This commit is contained in:
bordun 2021-03-20 15:52:43 +01:00
parent 61b6ae00b4
commit a972c1a31a
2 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- `alt+shift+c` not working when pressed before dragging
- incremental pasting issue with address property
- editor
- add `mod+d` and `mod+shift+d` for duplicating widgets

View file

@ -184,10 +184,12 @@ var incrementWidget = function(data, root){
data.address = 'auto'
} else if (!address.match(/^auto|\/control|\/note|\/program|\/sysex|\/key_pressure|\/channel_pressure|\/pitch/) !== 'auto') {
} else if (!address.match(/^(auto|\/control|\/note|\/program|\/sysex|\/mtc|\/key_pressure|\/channel_pressure|\/pitch)$/)) {
var addressref = widgetManager.createAddressRef(null, data.preArgs,address)
var addressref
while (fakeStore.address.indexOf(address) != -1 || widgetManager.getWidgetByAddress(addressref).length) {
address = address.replace(/([0-9]*)$/,function(m){
var n = parseInt(m)+1
n = isNaN(n)?1:n