mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Fix "Ignored automation data for non-automatable parameter"
Do not save automation data for parameters that cannot be automated.
This commit is contained in:
parent
66ad0ebb03
commit
5476aa336f
1 changed files with 4 additions and 0 deletions
|
|
@ -326,6 +326,10 @@ Automatable::get_automation_xml_state () const
|
|||
}
|
||||
|
||||
for (Controls::const_iterator li = controls().begin(); li != controls().end(); ++li) {
|
||||
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl>(li->second);
|
||||
if (ac && (ac->flags() & Controllable::NotAutomatable)) {
|
||||
continue;
|
||||
}
|
||||
std::shared_ptr<AutomationList> l = std::dynamic_pointer_cast<AutomationList>(li->second->list());
|
||||
if (l) {
|
||||
node->add_child_nocopy (l->get_state ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue