Skip to content

Commit db7e7f8

Browse files
authored
Enabling manual space width for TextViewFacingMarker (#1261)
Signed-off-by: Tom Moore <[email protected]>
1 parent 37cf805 commit db7e7f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rviz_default_plugins/src/rviz_default_plugins/displays/marker/markers/text_view_facing_marker.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ void TextViewFacingMarker::onNewMessage(
8585
scene_node_->setVisible(true);
8686

8787
setPosition(pos);
88+
if (new_message->scale.x != 0.0) {
89+
text_->setSpaceWidth(new_message->scale.x);
90+
}
8891
text_->setCharacterHeight(new_message->scale.z);
8992
text_->setColor(
9093
Ogre::ColourValue(

0 commit comments

Comments
 (0)