1
0
Fork 0

Mark poly mod parameters as such

This commit is contained in:
Robbert van der Helm 2022-07-05 23:41:21 +02:00
parent 54b47ecf71
commit af4314b581

View file

@ -2896,6 +2896,9 @@ impl<P: ClapPlugin> Wrapper<P> {
param_info.flags = 0;
if automatable && !hidden {
param_info.flags |= CLAP_PARAM_IS_AUTOMATABLE | CLAP_PARAM_IS_MODULATABLE;
if wrapper.poly_mod_ids_by_hash.contains_key(param_hash) {
param_info.flags |= CLAP_PARAM_IS_MODULATABLE_PER_NOTE_ID;
}
}
if hidden {
param_info.flags |= CLAP_PARAM_IS_HIDDEN | CLAP_PARAM_IS_READONLY;