Skip to content
Snippets Groups Projects
Commit 42b63f2f authored by Tobias Schmidt's avatar Tobias Schmidt
Browse files

ICS was not updated properly after connecting atoms

parent f5defe19
No related branches found
No related tags found
No related merge requests found
...@@ -217,6 +217,7 @@ void EditorBase::UpdateTrace() ...@@ -217,6 +217,7 @@ void EditorBase::UpdateTrace()
{ {
if (mode_==UNBUFFERED_EDIT) { if (mode_==UNBUFFERED_EDIT) {
ent_.Impl()->TraceDirectionality(); ent_.Impl()->TraceDirectionality();
ent_.Impl()->UpdateICSIfNeeded();
} }
} }
......
...@@ -103,6 +103,13 @@ bool test_angle(Real a, Real e) { ...@@ -103,6 +103,13 @@ bool test_angle(Real a, Real e) {
BOOST_AUTO_TEST_SUITE( mol_base ) BOOST_AUTO_TEST_SUITE( mol_base )
BOOST_AUTO_TEST_CASE(ics_update_icsbondlength)
{
TorsionStructure s;
mol::BondHandle bond = s.a2.FindBondToAtom(s.a3);
BOOST_CHECK_CLOSE(bond.GetLength(), 1.0, EPSILON);
}
BOOST_AUTO_TEST_CASE(ics_settorsion_unbuffered) BOOST_AUTO_TEST_CASE(ics_settorsion_unbuffered)
{ {
Real eps = 0.0001; Real eps = 0.0001;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment