1
0
Fork 0

Use preview_plain when setting normalized values

To prevent bugs, there should be only one way parameters are
unnormalized.
This commit is contained in:
Robbert van der Helm 2022-02-13 16:44:18 +01:00
parent 3d8cfd7477
commit 4783535ebb

View file

@ -223,7 +223,7 @@ macro_rules! impl_plainparam {
}
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 {