From 19559d01f7c54eff762d5f8df73b343518a0e15e Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Mon, 23 Sep 2019 16:53:31 +0200 Subject: [PATCH] mol-state: call canAutoUpdate with correct parameters --- src/mol-plugin/ui/state/update-transform.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mol-plugin/ui/state/update-transform.tsx b/src/mol-plugin/ui/state/update-transform.tsx index f9fb6bb9a..49ac44ba4 100644 --- a/src/mol-plugin/ui/state/update-transform.tsx +++ b/src/mol-plugin/ui/state/update-transform.tsx @@ -51,7 +51,7 @@ class UpdateTransformControl extends TransformControlBase<UpdateTransformControl if (!cell || !cell.sourceRef || cell.status !== 'ok') return false; const parentCell = state.cells.get(cell.sourceRef)!; - return autoUpdate({ a: cell.obj!, b: parentCell.obj!, oldParams: this.getInfo().initialValues, newParams }, this.plugin); + return autoUpdate({ a: parentCell.obj!, b: cell.obj!, oldParams: this.getInfo().initialValues, newParams }, this.plugin); } componentDidMount() { -- GitLab