Skip to content

Commit

Permalink
Merge pull request #81810 from AThousandShips/camera_m
Browse files Browse the repository at this point in the history
Make editor camera speed indicator use `m/s` and `m`
  • Loading branch information
akien-mga committed Sep 18, 2023
2 parents 58a62f9 + 8d7a2c6 commit 9892bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,7 @@ void Node3DEditorViewport::_draw() {
get_editor_theme_icon(SNAME("ViewportSpeed")),
get_theme_font(SNAME("font"), SNAME("Label")),
get_theme_font_size(SNAME("font_size"), SNAME("Label")),
vformat("%s u/s", String::num(freelook_speed).pad_decimals(precision)),
vformat("%s m/s", String::num(freelook_speed).pad_decimals(precision)),
Color(1.0, 0.95, 0.7));
}

Expand All @@ -3180,7 +3180,7 @@ void Node3DEditorViewport::_draw() {
get_editor_theme_icon(SNAME("ViewportZoom")),
get_theme_font(SNAME("font"), SNAME("Label")),
get_theme_font_size(SNAME("font_size"), SNAME("Label")),
vformat("%s u", String::num(cursor.distance).pad_decimals(precision)),
vformat("%s m", String::num(cursor.distance).pad_decimals(precision)),
Color(0.7, 0.95, 1.0));
}
}
Expand Down

0 comments on commit 9892bc2

Please sign in to comment.