Skip to content

Commit af5f75d

Browse files
Enabling manual space width for TextViewFacingMarker (#1261) (#1269)
Signed-off-by: Tom Moore <[email protected]> (cherry picked from commit db7e7f8) Co-authored-by: Tom Moore <[email protected]>
1 parent 4aacb79 commit af5f75d

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
@@ -84,6 +84,9 @@ void TextViewFacingMarker::onNewMessage(
8484
scene_node_->setVisible(true);
8585

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

0 commit comments

Comments
 (0)