Skip to content

Commit

Permalink
Make editor camera speed indicator use m/s and m
Browse files Browse the repository at this point in the history
  • Loading branch information
AThousandShips committed Sep 17, 2023
1 parent 4df80b0 commit 8d7a2c6
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 8d7a2c6

Please sign in to comment.