Skip to content
Snippets Groups Projects
Commit a195eb62 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix wrongly removed state blocks

parent 5199d998
No related branches found
No related tags found
1 merge request!347Resolve "set frame to non-estimated removes its state blocks"
Pipeline #5038 failed
This commit is part of merge request !347. Comments created here will be created in the context of that merge request.
...@@ -140,7 +140,8 @@ void FrameBase::setNonEstimated() ...@@ -140,7 +140,8 @@ void FrameBase::setNonEstimated()
{ {
// unregister if previously estimated // unregister if previously estimated
if (isKeyOrAux()) if (isKeyOrAux())
removeStateBlocks(getProblem()); for (const auto& sb : getStateBlockVec())
getProblem()->notifyStateBlock(sb, REMOVE);
type_ = NON_ESTIMATED; type_ = NON_ESTIMATED;
if (getTrajectory()) if (getTrajectory())
......
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