Explorar o código

explictly activate original residue type

JonStargaryen %!s(int64=4) %!d(string=hai) anos
pai
achega
dc6d107b56
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/viewer/ui/strucmotif.tsx

+ 5 - 0
src/viewer/ui/strucmotif.tsx

@@ -271,6 +271,11 @@ export class Residue {
 
     constructor(readonly entry: StructureSelectionHistoryEntry, readonly callback: () => void) {
         this.exchanges = new Set<string>();
+        // by default: explicitly 'activate' original residue type
+        const structure = entry.loci.structure;
+        const e = entry.loci.elements[0];
+        StructureElement.Location.set(location, structure, e.unit, e.unit.elements[OrderedSet.getAt(e.indices, 0)]);
+        this.exchanges.add(StructureProperties.atom.label_comp_id(location));
     }
 
     toggleExchange(val: string): void {