mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Fix Aux-send copy/paste
* Create new IDs * Allow to link with route's panner
This commit is contained in:
parent
1fc8b55314
commit
31691a6ad4
1 changed files with 2 additions and 3 deletions
|
|
@ -3517,11 +3517,11 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Pannable> sendpan(new Pannable (*_session));
|
|
||||||
XMLNode n (**niter);
|
XMLNode n (**niter);
|
||||||
InternalSend* s = new InternalSend (*_session, sendpan, _route->mute_master(),
|
InternalSend* s = new InternalSend (*_session, _route->pannable(), _route->mute_master(),
|
||||||
_route, boost::shared_ptr<Route>(), Delivery::Aux);
|
_route, boost::shared_ptr<Route>(), Delivery::Aux);
|
||||||
|
|
||||||
|
PBD::Stateful::ForceIDRegeneration force_ids;
|
||||||
if (s->set_state (n, Stateful::loading_state_version)) {
|
if (s->set_state (n, Stateful::loading_state_version)) {
|
||||||
delete s;
|
delete s;
|
||||||
return;
|
return;
|
||||||
|
|
@ -3539,7 +3539,6 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
|
||||||
|
|
||||||
} else if (type->value() == "send") {
|
} else if (type->value() == "send") {
|
||||||
|
|
||||||
boost::shared_ptr<Pannable> sendpan(new Pannable (*_session));
|
|
||||||
XMLNode n (**niter);
|
XMLNode n (**niter);
|
||||||
|
|
||||||
Send* s = new Send (*_session, _route->pannable(), _route->mute_master());
|
Send* s = new Send (*_session, _route->pannable(), _route->mute_master());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue