Kaynağa Gözat

Structure.transform parent revert

David Sehnal 5 yıl önce
ebeveyn
işleme
325e4e44dc

+ 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 {