fixed mod amount setting causing graph change update on observer
This commit is contained in:
parent
6baef4be70
commit
328e245bd2
1 changed files with 6 additions and 1 deletions
|
@ -913,8 +913,13 @@ impl Matrix {
|
|||
if self.config.set_param_modamt(param.clone(), modamt) {
|
||||
if let Some(obs) = &self.observer { obs.update_param(¶m); }
|
||||
|
||||
// XXX: Remove the observer from the matrix, so the sync() does not
|
||||
// generate a matrix graph update! There is no structural change!
|
||||
let obs = self.observer.take();
|
||||
// XXX: sync implicitly increases gen_counter!
|
||||
self.sync()
|
||||
let ret = self.sync();
|
||||
self.observer = obs;
|
||||
ret
|
||||
} else {
|
||||
self.gen_counter += 1;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue