소스 검색

OrientationEllipsoidMeshVisual.eachUnit

Alexander Rose 5 년 전
부모
커밋
65a692e3bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/mol-repr/structure/visual/orientation-ellipsoid-mesh.ts

+ 1 - 1
src/mol-repr/structure/visual/orientation-ellipsoid-mesh.ts

@@ -107,7 +107,7 @@ function eachUnit(loci: Loci, structureGroup: StructureGroup, apply: (interval:
         const unitIdx = group.unitIndexMap.get(e.unit.id)
         if (unitIdx !== undefined) {
             if (OrderedSet.size(e.indices) === elementCount) {
-                if (apply(Interval.ofSingleton(0))) changed = true
+                if (apply(Interval.ofSingleton(unitIdx))) changed = true
             }
         }
     }