浏览代码

fixed nucleotide marking (only apply to atomic units)

Alexander Rose 6 年之前
父节点
当前提交
625111928b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/mol-repr/structure/visual/util/nucleotide.ts

+ 3 - 1
src/mol-repr/structure/visual/util/nucleotide.ts

@@ -35,7 +35,9 @@ export function getNucleotideElementLoci(pickingId: PickingId, structureGroup: S
     if (id === objectId) {
         const { structure, group } = structureGroup
         const unit = group.units[instanceId]
-        return getResidueLoci(structure, unit, unit.polymerElements[groupId])
+        if (Unit.isAtomic(unit)) {
+            return getResidueLoci(structure, unit, unit.polymerElements[groupId])
+        }
     }
     return EmptyLoci
 }