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
@ -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…
Reference in New Issue
Block a user