diff --git a/src/mol-model/structure/model/formats/mmcif/assembly.ts b/src/mol-model/structure/model/formats/mmcif/assembly.ts index e89690e1723ca31eca3c7295114331e97c9c786a..ddc0e6f478fe75f912992338a7e4032dde1c482f 100644 --- a/src/mol-model/structure/model/formats/mmcif/assembly.ts +++ b/src/mol-model/structure/model/formats/mmcif/assembly.ts @@ -110,14 +110,14 @@ function expandOperators1(operatorNames: string[][], list: string[][], i: number function getAssemblyOperators(matrices: Matrices, operatorNames: string[][], startIndex: number) { const operators: SymmetryOperator[] = []; - let index = startIndex; for (let op of operatorNames) { let m = Mat4.identity(); for (let i = 0; i < op.length; i++) { Mat4.mul(m, m, matrices.get(op[i])!); } - index++; - operators[operators.length] = SymmetryOperator.create(`A-${index}`, m); + // TODO currently using the original operator name for the symmetry operator to be able + // to link it to the original operator but it might be clearer to introduce an extra field??? + operators[operators.length] = SymmetryOperator.create(`A-${op.join(',')}`, m); } return operators;