Fix copying RegionFx Automation
This commit is contained in:
parent
233a82d5f9
commit
100ee72cec
@ -355,9 +355,12 @@ RegionFxPlugin::set_default_automation (timepos_t end)
|
|||||||
{
|
{
|
||||||
for (auto const& i : _controls) {
|
for (auto const& i : _controls) {
|
||||||
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl> (i.second);
|
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl> (i.second);
|
||||||
assert (ac->alist ()->empty ());
|
if (ac->alist ()->empty ()) {
|
||||||
ac->alist ()->fast_simple_add (timepos_t (time_domain ()), ac->normal ());
|
ac->alist ()->fast_simple_add (timepos_t (time_domain ()), ac->normal ());
|
||||||
ac->alist ()->fast_simple_add (end, ac->normal ());
|
ac->alist ()->fast_simple_add (end, ac->normal ());
|
||||||
|
} else {
|
||||||
|
ac->alist ()->truncate_end (end);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user