Set discrete by default for boolean parameters.
This commit is contained in:
parent
ed1bbefd19
commit
784b96e255
@ -1212,6 +1212,9 @@ PluginInsert::PluginControl::PluginControl (PluginInsert* p,
|
||||
{
|
||||
if (alist()) {
|
||||
alist()->reset_default (desc.normal);
|
||||
if (desc.toggled) {
|
||||
list->set_interpolation(Evoral::ControlList::Discrete);
|
||||
}
|
||||
}
|
||||
|
||||
if (desc.toggled) {
|
||||
|
@ -54,7 +54,7 @@ double ControlList::_thinning_factor = 20.0;
|
||||
|
||||
ControlList::ControlList (const Parameter& id)
|
||||
: _parameter(id)
|
||||
, _interpolation(Linear)
|
||||
, _interpolation(id.toggled() ? Discrete : Linear)
|
||||
, _curve(0)
|
||||
{
|
||||
_frozen = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user