VST3: fix manually setting integer ctrls from UI (#9212)
set_parameter_internal() normalizes the value (C++ reference), when setting a parameter manually (inline control, generic UI) only the shadow_data is updated (which is supposed to be normalized).
This commit is contained in:
parent
830dfdda24
commit
d0a51f017a
@ -1850,6 +1850,8 @@ VST3PI::set_parameter (uint32_t p, float value, int32 sample_off, bool to_list)
|
||||
{
|
||||
if (to_list) {
|
||||
set_parameter_internal (index_to_id (p), value, sample_off, false);
|
||||
} else {
|
||||
value = _controller->plainParamToNormalized (index_to_id (p), value);
|
||||
}
|
||||
_shadow_data[p] = value;
|
||||
_update_ctrl[p] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user