瀏覽代碼

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
             }
         }
     }