Fix deserializing boolean parameters
This commit is contained in:
parent
85db4d82df
commit
0aad790fd7
1 changed files with 3 additions and 3 deletions
|
@ -436,10 +436,9 @@ impl<P: Plugin> IComponent for Wrapper<'_, P> {
|
|||
match param_value {
|
||||
ParamValue::Bool(b) => self.inner.bypass_state.store(b, Ordering::SeqCst),
|
||||
_ => nih_debug_assert_failure!(
|
||||
"Invalid serialized value {:?} for parameter {} ({:?})",
|
||||
"Invalid serialized value {:?} for parameter \"{}\"",
|
||||
param_value,
|
||||
param_id_str,
|
||||
param_id_str,
|
||||
),
|
||||
};
|
||||
continue;
|
||||
|
@ -461,9 +460,10 @@ impl<P: Plugin> IComponent for Wrapper<'_, P> {
|
|||
match (param_ptr, param_value) {
|
||||
(ParamPtr::FloatParam(p), ParamValue::F32(v)) => (**p).set_plain_value(v),
|
||||
(ParamPtr::IntParam(p), ParamValue::I32(v)) => (**p).set_plain_value(v),
|
||||
(ParamPtr::BoolParam(p), ParamValue::Bool(v)) => (**p).set_plain_value(v),
|
||||
(param_ptr, param_value) => {
|
||||
nih_debug_assert_failure!(
|
||||
"Invalid serialized value {:?} for parameter {} ({:?})",
|
||||
"Invalid serialized value {:?} for parameter \"{}\" ({:?})",
|
||||
param_value,
|
||||
param_id_str,
|
||||
param_ptr,
|
||||
|
|
Loading…
Add table
Reference in a new issue