Fix state save of region fades. Fixes #3316.
git-svn-id: svn://localhost/ardour2/branches/3.0@7429 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
faefa809ad
commit
eb4d9be40c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user