Skip to content

Commit

Permalink
Don't set visual scale for point markers
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Nov 25, 2021
1 parent d695669 commit 875b551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/marker_manager/MarkerManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ void MarkerManagerPrivate::SetVisual(const ignition::msgs::Marker &_msg,
const rendering::VisualPtr &_visualPtr)
{
// Set Visual Scale
if (_msg.has_scale())
// The scale for points is used as the size of each point, so skip it here.
if (_msg.has_scale() && _msg.type() != ignition::msgs::Marker::POINTS)
{
_visualPtr->SetLocalScale(_msg.scale().x(),
_msg.scale().y(),
Expand Down

0 comments on commit 875b551

Please sign in to comment.