mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
Fix copying RegionFx Automation
This commit is contained in:
parent
233a82d5f9
commit
100ee72cec
1 changed files with 6 additions and 3 deletions
|
|
@ -355,9 +355,12 @@ RegionFxPlugin::set_default_automation (timepos_t end)
|
|||
{
|
||||
for (auto const& i : _controls) {
|
||||
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl> (i.second);
|
||||
assert (ac->alist ()->empty ());
|
||||
ac->alist ()->fast_simple_add (timepos_t (time_domain ()), ac->normal ());
|
||||
ac->alist ()->fast_simple_add (end, ac->normal ());
|
||||
if (ac->alist ()->empty ()) {
|
||||
ac->alist ()->fast_simple_add (timepos_t (time_domain ()), ac->normal ());
|
||||
ac->alist ()->fast_simple_add (end, ac->normal ());
|
||||
} else {
|
||||
ac->alist ()->truncate_end (end);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue