소스 검색

tweak hasStructConnRecord

dsehnal 2 년 전
부모
커밋
f8e2d2e3d0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/mol-model/structure/structure/unit/bonds/inter-compute.ts

+ 2 - 0
src/mol-model/structure/structure/unit/bonds/inter-compute.ts

@@ -261,6 +261,8 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo
 }
 
 function hasStructConnRecord(unit: Unit) {
+    if (!Unit.isAtomic(unit)) return false;
+
     const elements = unit.elements;
     const structConn = StructConn.Provider.get(unit.model);
     if (structConn) {