diff --git a/modules/conop/src/rule_based_builder.cc b/modules/conop/src/rule_based_builder.cc index daaaa050a2b03a539b7534615a5ec9eb883bc7f3..a7dcc3ed523e08e6735ac97d234194fe24a753e5 100644 --- a/modules/conop/src/rule_based_builder.cc +++ b/modules/conop/src/rule_based_builder.cc @@ -71,8 +71,10 @@ bool RuleBasedBuilder::HasUnknownAtoms(mol::ResidueHandle res) mol::AtomHandleList::iterator i=atoms.begin(); for (mol::AtomHandleList::iterator i=atoms.begin(), e=atoms.end(); i!=e; ++i) { - if ((*i).Impl()->GetState()==std::numeric_limits<unsigned int>::max() && - this->GetStrictHydrogenMode() && (*i).GetElement()!="H") { + if ((*i).Impl()->GetState()==std::numeric_limits<unsigned int>::max()) { + if ((*i).GetElement()!="H" && this->GetStrictHydrogenMode()==false) { + continue; + } return true; } }