mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix send copying by paste and drag n drop.
git-svn-id: svn://localhost/ardour2/branches/3.0@4550 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e9fde9baa7
commit
50d7d19614
4 changed files with 46 additions and 20 deletions
|
|
@ -964,8 +964,16 @@ ProcessorBox::paste_processor_state (const XMLNode& node)
|
|||
|
||||
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
||||
cerr << "try using " << (*niter)->name() << endl;
|
||||
XMLProperty const * type = (*niter)->property ("type");
|
||||
assert (type);
|
||||
try {
|
||||
copies.push_back (boost::shared_ptr<Processor> (new PluginInsert (_session, **niter)));
|
||||
if (type->value() == "send") {
|
||||
XMLNode n (**niter);
|
||||
Send::make_unique (n, _session);
|
||||
copies.push_back (boost::shared_ptr<Processor> (new Send (_session, n)));
|
||||
} else {
|
||||
copies.push_back (boost::shared_ptr<Processor> (new PluginInsert (_session, **niter)));
|
||||
}
|
||||
}
|
||||
catch (...) {
|
||||
cerr << "plugin insert constructor failed\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue