Merge pull request #81810 from AThousandShips/camera_m
Make editor camera speed indicator use `m/s` and `m`
This commit is contained in:
commit
9892bc2478
1 changed files with 2 additions and 2 deletions
|
@ -3157,7 +3157,7 @@ void Node3DEditorViewport::_draw() {
|
||||||
get_editor_theme_icon(SNAME("ViewportSpeed")),
|
get_editor_theme_icon(SNAME("ViewportSpeed")),
|
||||||
get_theme_font(SNAME("font"), SNAME("Label")),
|
get_theme_font(SNAME("font"), SNAME("Label")),
|
||||||
get_theme_font_size(SNAME("font_size"), 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));
|
Color(1.0, 0.95, 0.7));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3180,7 +3180,7 @@ void Node3DEditorViewport::_draw() {
|
||||||
get_editor_theme_icon(SNAME("ViewportZoom")),
|
get_editor_theme_icon(SNAME("ViewportZoom")),
|
||||||
get_theme_font(SNAME("font"), SNAME("Label")),
|
get_theme_font(SNAME("font"), SNAME("Label")),
|
||||||
get_theme_font_size(SNAME("font_size"), 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));
|
Color(0.7, 0.95, 1.0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue