소스 검색

mol-state: call canAutoUpdate with correct parameters

David Sehnal 5 년 전
부모
커밋
19559d01f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/mol-plugin/ui/state/update-transform.tsx

+ 1 - 1
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() {