13
0

Fix "Ignored automation data for non-automatable parameter"

Do not save automation data for parameters that cannot
be automated.
This commit is contained in:
Robin Gareus 2024-01-02 23:45:22 +01:00
parent 66ad0ebb03
commit 5476aa336f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ());