diff options
author | nick_m <mainsbridge@gmail.com> | 2015-09-22 03:20:39 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-20 00:53:27 +1100 |
commit | 877b258c74aa6e2fa737ca9112900dca8bce6628 (patch) | |
tree | 887dbf4c88b86e0238a318e7fec70b0fc5df9983 /gtk2_ardour/automation_controller.cc | |
parent | 5afb645c9fa6426ae2d5cf56ab20448eba9e91e0 (diff) |
Toggled automation fixes.
- don't attempt to insert two points on toggle.
- remove forced touch->write mode change on toggle
- initial state still wrong, but works much better overall.
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index a20ae54211..1bce94dca2 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -86,7 +86,6 @@ AutomationController::AutomationController(boost::shared_ptr<Automatable> but->set_controllable(ac); but->signal_clicked.connect( sigc::mem_fun(*this, &AutomationController::toggled)); - _widget = but; } else { AutomationBarController* bar = manage(new AutomationBarController(_printer, ac, adj)); @@ -198,14 +197,6 @@ AutomationController::toggled () { ArdourButton* but = dynamic_cast<ArdourButton*>(_widget); if (but) { - if (_controllable->session().transport_rolling()) { - if (_controllable->automation_state() == Touch) { - _controllable->set_automation_state(Write); - } - if (_controllable->list()) { - _controllable->list()->set_in_write_pass(true, true, _controllable->session().audible_frame()); - } - } const bool was_active = _controllable->get_value() >= 0.5; if (was_active && but->get_active()) { _adjustment->set_value(0.0); |