Prechádzať zdrojové kódy

simplify ter record check

Alexander Rose 2 rokov pred
rodič
commit
1c9f3ed9fa

+ 1 - 1
src/mol-model-formats/structure/pdb/atom-site.ts

@@ -91,7 +91,7 @@ export function getAtomSite(sites: AtomSiteTemplate, terIndices: Set<number>): {
         if (asymIdCounts.has(asymId)) {
             // only change the chains name if there are TER records
             // otherwise assume repeated chain name use is from interleaved chains
-            if (terIndices.size > 0 && asymIdChanged || terIndices.has(i)) {
+            if (terIndices.has(i)) {
                 const asymIdCount = asymIdCounts.get(asymId)! + 1;
                 asymIdCounts.set(asymId, asymIdCount);
                 currLabelAsymId = `${asymId}_${asymIdCount}`;