mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
Non-numeric Properties are not automatable
Fixes a crash, when the Generic-UI tries to access the AutomationList of LV2 URID or String Properties.
This commit is contained in:
parent
4459761f4d
commit
8bc2bf0155
1 changed files with 5 additions and 1 deletions
|
|
@ -492,7 +492,11 @@ PluginInsert::create_automatable_parameters ()
|
|||
if (Variant::type_is_numeric(desc.datatype)) {
|
||||
list = boost::shared_ptr<AutomationList>(new AutomationList(param, desc));
|
||||
}
|
||||
add_control (boost::shared_ptr<AutomationControl> (new PluginPropertyControl(this, param, desc, list)));
|
||||
boost::shared_ptr<AutomationControl> c (new PluginPropertyControl(this, param, desc, list));
|
||||
if (!Variant::type_is_numeric(desc.datatype)) {
|
||||
c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable));
|
||||
}
|
||||
add_control (c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue