Use preview_plain when setting normalized values
To prevent bugs, there should be only one way parameters are unnormalized.
This commit is contained in:
parent
3d8cfd7477
commit
4783535ebb
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ macro_rules! impl_plainparam {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_normalized_value(&mut self, normalized: f32) {
|
fn set_normalized_value(&mut self, normalized: f32) {
|
||||||
self.set_plain_value(self.range.unnormalize(normalized));
|
self.set_plain_value(self.preview_plain(normalized));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn normalized_value_to_string(&self, normalized: f32, include_unit: bool) -> String {
|
fn normalized_value_to_string(&self, normalized: f32, include_unit: bool) -> String {
|
||||||
|
|
Loading…
Add table
Reference in a new issue