diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-19 14:52:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-19 14:52:14 +0000 |
commit | 42631b4b1f7d8105d5fa5a00a44c272c08765d1b (patch) | |
tree | 089234c8c8fb2694a7ed8ca0a07050c9bb033518 | |
parent | 5c97b7a9cfe51398c91c51cf2ff602600fa4bb40 (diff) |
Finish off half-cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@10234 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/route.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index a051cdb3d3..47e09cd2a7 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -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 (); } } |