send_to_bus script: fix for mixbus or other cases where master bus inputs=0

This commit is contained in:
Ben Loftis 2022-07-01 09:01:43 -05:00
parent c6566f3933
commit 2b250a5639
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ function factory () return function ()
chn = mst:n_inputs ():n_audio ()
end
mst = nil -- explicitly drop reference
if chn = 0 then chn = 2; end
local sel = Editor:get_selection () -- get selection
local tracks = ARDOUR.RouteListPtr () -- create a new list