소스 검색

Structure.transform parent revert

David Sehnal 5 년 전
부모
커밋
325e4e44dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/mol-model/structure/structure/structure.ts

+ 1 - 1
src/mol-model/structure/structure/structure.ts

@@ -788,7 +788,7 @@ namespace Structure {
 
         const cs = s.coordinateSystem;
         const newCS = SymmetryOperator.compose(SymmetryOperator.create(cs.name, transform, cs), cs);
-        return new Structure(units, { parent: s.parent, coordinateSystem: newCS });
+        return new Structure(units, { parent: s, coordinateSystem: newCS });
     }
 
     export class StructureBuilder {