Sfoglia il codice sorgente

fix .firstChainLoc assignment in handleUnitChainsSimple

Alexander Rose 5 anni fa
parent
commit
4434dfb79a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/mol-model/structure/structure/element/stats.ts

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

@@ -186,7 +186,7 @@ export namespace Stats {
                 // full chain
                 stats.chainCount += 1;
                 if (stats.chainCount === 1) {
-                    Location.set(stats.firstChainLoc, unit, elements[offsets[cI]]);
+                    Location.set(stats.firstChainLoc, unit, offsets[cI]);
                 }
             }
         }