Просмотр исходного кода

fix partial polymer trace sec-struc type

Alexander Rose 1 год назад
Родитель
Сommit
44c69f538b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/mol-repr/structure/visual/util/polymer/trace-iterator.ts

+ 2 - 2
src/mol-repr/structure/visual/util/polymer/trace-iterator.ts

@@ -233,8 +233,8 @@ export class AtomicPolymerTraceIterator implements Iterator<PolymerTraceElement>
             const residueIndexNext2 = this.getResidueIndex(residueIndex + 2);
             const residueIndexNext3 = this.getResidueIndex(residueIndex + 3);
 
-            this.prevSecStrucType = this.currSecStrucType;
-            this.currSecStrucType = this.nextSecStrucType;
+            this.prevSecStrucType = this.getSecStruc(residueIndexPrev1);
+            this.currSecStrucType = this.getSecStruc(residueIndex);
             this.nextSecStrucType = residueIndex === residueIndexNext1 ? SecStrucTypeNA : this.getSecStruc(residueIndexNext1);
 
             this.prevCoarseBackbone = this.currCoarseBackbone;