mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Amend f474d0d4a9, remove explicit casts
This commit is contained in:
parent
72e6a79b69
commit
2936a4d2bd
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ function factory () return function ()
|
|||
-- test if mst is already controlled by slv (directly or indirectly)
|
||||
-- if so, don't allow the connection
|
||||
if (not slv:to_slavable ():assigned_to (Session:vca_manager(), mst)) then
|
||||
-- if slv is a VCA and is controlled by master, disconnect it
|
||||
if (not slv:to_vca ():isnil () and slv:to_vca ():slaved_to (mst)) or (not slv:to_route ():isnil () and slv:to_route ():slaved_to (mst)) then
|
||||
-- if slv controlled by master, disconnect it
|
||||
if (slv:slaved_to (mst)) then
|
||||
slv:to_slavable ():unassign (mst)
|
||||
else
|
||||
slv:to_slavable ():assign (mst)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue