diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-30 17:42:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-30 17:42:00 +0000 |
commit | 9e1c3be0a7a2506058584cacdd11bc5acadf3399 (patch) | |
tree | e7324035001d53899c124b7292dde7150ce112f7 /libs/ardour/panner.cc | |
parent | 5c6c82bb797cc76e981d79c41b7a55fc87296fe0 (diff) |
part two of: don't reset panner or plugin parameter values when switching automation to Write or Off to avoid losing manually-set value (#879, from carl)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5988 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r-- | libs/ardour/panner.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index d626ec4afb..473354d29e 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -224,8 +224,11 @@ BaseStereoPanner::set_automation_state (AutoState state) if (state != _automation.automation_state()) { _automation.set_automation_state (state); - - if (state != Off) { + + /* don't reset pan if we're moving to Off or Write mode; + if we're moving to Write, the user may have manually set up pans + that they don't want to lose */ + if (state != Off && state != Write) { set_position (_automation.eval (parent.session().transport_frame())); } } |