Skip to content

Commit 30461b8

Browse files
authored
follow sofa lifecycle (#59)
1 parent cef5957 commit 30461b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SoftRobots.Inverse/component/solver/QPInverseProblemSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ bool QPInverseProblemSolver::applyCorrection(const ConstraintParams *cParams, Mu
572572
{
573573
AdvancedTimer::stepBegin("Compute And Apply Motion Correction");
574574

575-
if (cParams->constOrder() == ConstraintParams::POS_AND_VEL)
575+
if (cParams->constOrder() == sofa::core::ConstraintOrder::POS_AND_VEL)
576576
{
577577
MultiVecCoordId xId(res1);
578578
MultiVecDerivId vId(res2);
@@ -589,7 +589,7 @@ bool QPInverseProblemSolver::applyCorrection(const ConstraintParams *cParams, Mu
589589
cc->applyMotionCorrection(cParams, xId, vId, cParams->dx(), getDx());
590590
}
591591
}
592-
else if (cParams->constOrder() == ConstraintParams::POS)
592+
else if (cParams->constOrder() == sofa::core::ConstraintOrder::POS)
593593
{
594594
MultiVecCoordId xId(res1);
595595
for (unsigned int i = 0; i < m_constraintsCorrections.size(); i++)
@@ -605,7 +605,7 @@ bool QPInverseProblemSolver::applyCorrection(const ConstraintParams *cParams, Mu
605605
cc->applyPositionCorrection(cParams, xId, cParams->dx(), getDx());
606606
}
607607
}
608-
else if (cParams->constOrder() == ConstraintParams::VEL)
608+
else if (cParams->constOrder() == sofa::core::ConstraintOrder::VEL)
609609
{
610610
MultiVecDerivId vId(res1);
611611
for (unsigned int i = 0; i < m_constraintsCorrections.size(); i++)

0 commit comments

Comments
 (0)