Skip to content
Snippets Groups Projects
Commit 2e69130f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix bug: Node::configConstraint did not take into account all the

constraints
parent 6a561cdc
No related branches found
No related tags found
No related merge requests found
......@@ -87,14 +87,8 @@ namespace hpp {
ConstraintPtr_t Node::configConstraint()
{
if (!configConstraints_) {
ConstraintSetPtr_t configConst = buildConstraintSet (graph_, name () + "-cfgconstraint");
insertListIn <LockedDofs_t> (lockedDofConstraints_, configConst);
if (numericalConstraints_.size () > 0) {
ConfigProjectorPtr_t cp = buildConfigProjector (graph_, name () + "cfgproj");
insertListIn <DifferentiableFunctions_t> (numericalConstraints_, cp);
configConst->addConstraint (HPP_DYNAMIC_PTR_CAST(Constraint, cp));
}
configConstraints_ = configConst;
Nodes_t thisNode; thisNode.push_back (wkPtr_.lock ());
configConstraints_ = graph_.lock ()->configConstraint (thisNode);
}
return configConstraints_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment