mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
VST set defaults only once (initially)
Opening the generic plugin UI or re-opening the GUI will call get_parameter_descriptor() again, and replace the defaults with current values.
This commit is contained in:
parent
68cbbe892f
commit
aee2606b28
1 changed files with 3 additions and 1 deletions
|
|
@ -344,7 +344,9 @@ VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
|
|||
}
|
||||
|
||||
desc.normal = get_parameter (which);
|
||||
_parameter_defaults[which] = desc.normal;
|
||||
if (_parameter_defaults.find (which) == _parameter_defaults.end ()) {
|
||||
_parameter_defaults[which] = desc.normal;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue