Fix Aux-send copy/paste

* Create new IDs
* Allow to link with route's panner
This commit is contained in:
Robin Gareus 2021-01-18 15:26:16 +01:00
parent 1fc8b55314
commit 31691a6ad4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3517,11 +3517,11 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
continue;
}
boost::shared_ptr<Pannable> sendpan(new Pannable (*_session));
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);
PBD::Stateful::ForceIDRegeneration force_ids;
if (s->set_state (n, Stateful::loading_state_version)) {
delete s;
return;
@ -3539,7 +3539,6 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
} else if (type->value() == "send") {
boost::shared_ptr<Pannable> sendpan(new Pannable (*_session));
XMLNode n (**niter);
Send* s = new Send (*_session, _route->pannable(), _route->mute_master());