Skip to content
Snippets Groups Projects
Commit f77fe6bf authored by B13nch3n's avatar B13nch3n
Browse files

SCHWED-4835: Create bonds for entity branch on per atom pair basis

parent e59b9bff
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ void MMCifInfo::ConnectBranchLinks(mol::XCSEditor editor)
blm_it->second.begin();
blv_it != blm_it->second.end();
++blv_it) {
editor.Connect(blv_it->GetAtom1(), blv_it->GetAtom2());
blv_it->ConnectBranchLink(editor);
}
}
}
......
......@@ -927,6 +927,10 @@ public:
atom1_(atom1), atom2_(atom2) {}
mol::AtomHandle GetAtom1() const { return atom1_;}
mol::AtomHandle GetAtom2() const { return atom2_; }
void ConnectBranchLink(mol::XCSEditor editor)
{
editor.Connect(atom1_, atom2_);
}
private:
mol::AtomHandle atom1_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment