From f8af480c564cda1ace207378b7c526870dce468d Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Mon, 29 Nov 2021 08:58:49 -0800 Subject: [PATCH] Don't set visual scale for point markers (#321) Signed-off-by: Louise Poubel --- src/plugins/marker_manager/MarkerManager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/marker_manager/MarkerManager.cc b/src/plugins/marker_manager/MarkerManager.cc index d9a3e75ed..01e45877d 100644 --- a/src/plugins/marker_manager/MarkerManager.cc +++ b/src/plugins/marker_manager/MarkerManager.cc @@ -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(),