mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Finish off half-cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@10234 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5c97b7a9cf
commit
42631b4b1f
1 changed files with 6 additions and 12 deletions
|
|
@ -1633,21 +1633,15 @@ Route::all_processors_active (Placement p, bool state)
|
|||
if (_processors.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ProcessorList::iterator start, end;
|
||||
placement_range(p, start, end);
|
||||
|
||||
bool before_amp = true;
|
||||
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
|
||||
if ((*i) == _amp) {
|
||||
before_amp = false;
|
||||
continue;
|
||||
}
|
||||
if (p == PreFader && before_amp) {
|
||||
if (state) {
|
||||
(*i)->activate ();
|
||||
} else {
|
||||
(*i)->deactivate ();
|
||||
}
|
||||
for (ProcessorList::iterator i = start; i != end; ++i) {
|
||||
if (state) {
|
||||
(*i)->activate ();
|
||||
} else {
|
||||
(*i)->deactivate ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue