Skip to content

Commit

Permalink
Don't set visual scale for point markers (#321)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Nov 29, 2021
1 parent d695669 commit f8af480
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 f8af480

Please sign in to comment.