diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-18 20:01:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-18 20:01:36 +0000 |
commit | d2c23d82047cf465b87c502eccc87582654fe43f (patch) | |
tree | bcd6414a7ffa23bd08335415ee7c362fc0cae7ad /libs/ardour/panner.cc | |
parent | d05a3f73050484868c8b4fcdf6a1df9715aba192 (diff) |
Fix save/reload of pan automation.
git-svn-id: svn://localhost/ardour2/branches/3.0@7798 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r-- | libs/ardour/panner.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index 3f6b23672a..5b33eaf1f5 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -183,7 +183,7 @@ StreamPanner::set_state (const XMLNode& node, int /*version*/) if ((prop = node.property (X_("mono")))) { set_mono (string_is_affirmative (prop->value())); } - + return 0; } @@ -1153,6 +1153,7 @@ Panner::state (bool full) node->add_child_nocopy ((*i)->state (full)); } + node->add_child_nocopy (get_automation_xml_state ()); return *node; } @@ -1259,6 +1260,12 @@ Panner::set_state (const XMLNode& node, int version) automation_path = Glib::build_filename(_session.automation_dir(), prop->value ()); } + for (niter = nlist.begin(); niter != nlist.end(); ++niter) { + if ((*niter)->name() == X_("Automation")) { + set_automation_xml_state (**niter, Evoral::Parameter (PanAutomation)); + } + } + return 0; } |