Skip to content
Snippets Groups Projects
Commit bad49ed2 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix in CaptureBase::move()

parent b8c1745a
No related branches found
No related tags found
No related merge requests found
Pipeline #3813 passed
......@@ -292,7 +292,7 @@ void CaptureBase::setCalibration(const VectorXs& _calib)
void CaptureBase::move(FrameBasePtr _frm_ptr)
{
WOLF_WARN_COND(this->getFrame() == nullptr, "moving a capture not linked to any frame");
WOLF_WARN_COND(_frm_ptr != nullptr, "moving a capture to a null FrameBasePtr");
WOLF_WARN_COND(_frm_ptr == nullptr, "moving a capture to a null FrameBasePtr");
// Unlink
if (this->getFrame())
......@@ -305,6 +305,7 @@ void CaptureBase::move(FrameBasePtr _frm_ptr)
// unlink from previous non-key frame
this->getFrame()->removeCapture(shared_from_this());
this->setFrame(nullptr);
}
// link
......
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