Explorar o código

tweak hasStructConnRecord

dsehnal %!s(int64=2) %!d(string=hai) anos
pai
achega
f8e2d2e3d0

+ 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) {