summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_event.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-11 03:22:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-11 03:22:41 +0000
commit55b143d013166cf5c869f589b4f1ee3539ac5f09 (patch)
tree016712040db0921dde049067e86c9481f4a1c6d3 /libs/ardour/automation_event.cc
parent90263f9a6dcec5de1bf6cd305d194118333a81ef (diff)
fix reload of region gain envelopes, freeze works from start ... end instead of zero ... end; prep for bouncing-before-tape-mode
git-svn-id: svn://localhost/ardour2/trunk@1105 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/automation_event.cc')
-rw-r--r--libs/ardour/automation_event.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc
index a2eeebed56..cc2554a704 100644
--- a/libs/ardour/automation_event.cc
+++ b/libs/ardour/automation_event.cc
@@ -1246,6 +1246,7 @@ int
AutomationList::set_state (const XMLNode& node)
{
XMLNodeList nlist = node.children();
+ XMLNode* nsos;
XMLNodeIterator niter;
const XMLProperty* prop;
@@ -1254,6 +1255,11 @@ AutomationList::set_state (const XMLNode& node)
return deserialize_events (node);
}
+ if (node.name() == X_("Envelope") && (nsos = node.child (X_("AutomationList")))) {
+ /* new school in old school clothing */
+ return set_state (*nsos);
+ }
+
if (node.name() == X_("Envelope") || node.name() == X_("FadeOut") || node.name() == X_("FadeIn")) {
/* old school */