diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-16 19:37:58 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-16 19:37:58 +0000 |
commit | eb4d9be40c15dd1fc7069eefef684048b98d2226 (patch) | |
tree | 8f1b8f3cc69509018a388f9812397c95df216d14 /libs/ardour/audioregion.cc | |
parent | faefa809ad37e5e4c9e729dd52723c7a15aa7237 (diff) |
Fix state save of region fades. Fixes #3316.
git-svn-id: svn://localhost/ardour2/branches/3.0@7429 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 6f349fed05..8c66591fa7 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -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; } |