mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
CloudViewer: Fixed crash when changing frustum's color
This commit is contained in:
@@ -1133,10 +1133,6 @@ void CloudViewer::setFrustumColor(QColor value)
|
|||||||
{
|
{
|
||||||
_visualizer->setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_COLOR, value.redF(), value.greenF(), value.blueF(), "reference_frustum");
|
_visualizer->setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_COLOR, value.redF(), value.greenF(), value.blueF(), "reference_frustum");
|
||||||
}
|
}
|
||||||
if(_arrows.find("reference_frustum_arrow") != _arrows.end())
|
|
||||||
{
|
|
||||||
_visualizer->setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_COLOR, value.redF(), value.greenF(), value.blueF(), "reference_frustum_arrow");
|
|
||||||
}
|
|
||||||
this->update();
|
this->update();
|
||||||
_frustumColor = value;
|
_frustumColor = value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user