Skip to content

Commit

Permalink
Bug fix for Point Generation Gap to work while Lasso Mode is not acti…
Browse files Browse the repository at this point in the history
…vated (#8)
  • Loading branch information
BryanMqz authored May 29, 2024
1 parent 6b42858 commit f384497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz_polygon_selection_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int PolygonSelectionTool::processMouseEvent(rviz_common::ViewportMouseEvent& eve
Ogre::Vector3 position;
if (context_->getViewPicker()->get3DPoint(event.panel, event.x, event.y, position))
{
if (lasso_mode_property_->getBool() && !points_.back().empty())
if (!points_.back().empty())
{
const Ogre::Vector3& last_point = points_.back().back();
if (last_point.squaredDistance(position) < std::pow(points_gap_size_property_->getFloat(), 2.0))
Expand Down

0 comments on commit f384497

Please sign in to comment.