From f384497cb56a8ba0c44862d159f5b5a195e37170 Mon Sep 17 00:00:00 2001 From: BryanMqz <85954509+BryanMqz@users.noreply.github.com> Date: Tue, 28 May 2024 23:17:40 -0500 Subject: [PATCH] Bug fix for Point Generation Gap to work while Lasso Mode is not activated (#8) --- src/rviz_polygon_selection_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz_polygon_selection_tool.cpp b/src/rviz_polygon_selection_tool.cpp index 7f17d5e..9a1d297 100644 --- a/src/rviz_polygon_selection_tool.cpp +++ b/src/rviz_polygon_selection_tool.cpp @@ -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))