Skip to content
Snippets Groups Projects
Commit f8e2d2e3 authored by dsehnal's avatar dsehnal
Browse files

tweak hasStructConnRecord

parent 4455bab6
Branches
No related tags found
No related merge requests found
...@@ -261,6 +261,8 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo ...@@ -261,6 +261,8 @@ function computeInterUnitBonds(structure: Structure, props?: Partial<InterBondCo
} }
function hasStructConnRecord(unit: Unit) { function hasStructConnRecord(unit: Unit) {
if (!Unit.isAtomic(unit)) return false;
const elements = unit.elements; const elements = unit.elements;
const structConn = StructConn.Provider.get(unit.model); const structConn = StructConn.Provider.get(unit.model);
if (structConn) { if (structConn) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment