Fix foldback bus duplication
signal_sources() can traverse upwards. e.g. when creating a foldback send to the master-bus, everything that feeds the master also feeds the foldback (even if there is no direct send).
This commit is contained in:
parent
41325a75fe
commit
16a476ee5f
@ -1092,10 +1092,10 @@ FoldbackStrip::duplicate_current_fb ()
|
||||
|
||||
for (auto const& rt : old_fb->signal_sources (true)) {
|
||||
boost::shared_ptr<Send> old_snd = rt->internal_send_for (old_fb);
|
||||
if (old_snd) {
|
||||
boost::shared_ptr<Processor> old_proc = old_snd;
|
||||
bool old_pre = old_proc->get_pre_fader ();
|
||||
rt->add_foldback_send (new_fb, !old_pre);
|
||||
if (old_snd) {
|
||||
float old_gain = old_snd->gain_control ()->get_value ();
|
||||
boost::shared_ptr<Send> new_snd = rt->internal_send_for (new_fb);
|
||||
new_snd->gain_control ()->set_value (old_gain, PBD::Controllable::NoGroup);
|
||||
|
Loading…
Reference in New Issue
Block a user