Fix state save of region fades. Fixes #3316.
authorCarl Hetherington <carl@carlh.net>
Fri, 16 Jul 2010 19:37:58 +0000 (19:37 +0000)
committerCarl Hetherington <carl@carlh.net>
Fri, 16 Jul 2010 19:37:58 +0000 (19:37 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7429 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audioregion.cc

index 6f349fed05b031a820ac94f52fbb23cee56b2552..8c66591fa771a0730b0e812854ab4351ce3b491a 100644 (file)
@@ -550,6 +550,22 @@ AudioRegion::state ()
                child->add_child_nocopy (_envelope->get_state ());
        }
 
+       child = node.add_child (X_("FadeIn"));
+
+       if (_default_fade_in) {
+               child->add_property ("default", "yes");
+       } else {
+               child->add_child_nocopy (_fade_in->get_state ());
+       }
+
+       child = node.add_child (X_("FadeOut"));
+
+       if (_default_fade_out) {
+               child->add_property ("default", "yes");
+       } else {
+               child->add_child_nocopy (_fade_out->get_state ());
+       }
+
        return node;
 }