Fix vertex indices showing as float
This commit is contained in:
parent
9ee1873ae1
commit
1c2e82ed0b
1 changed files with 1 additions and 1 deletions
|
|
@ -587,7 +587,7 @@ void AbstractPolygon2DEditor::forward_canvas_draw_over_viewport(Control *p_overl
|
|||
if (vertex == hover_point) {
|
||||
Ref<Font> font = get_theme_font(SNAME("bold"), EditorStringName(EditorFonts));
|
||||
int font_size = 1.3 * get_theme_font_size(SNAME("bold_size"), EditorStringName(EditorFonts));
|
||||
String num = String::num(vertex.vertex);
|
||||
String num = String::num_int64(vertex.vertex);
|
||||
Size2 num_size = font->get_string_size(num, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size);
|
||||
const float outline_size = 4;
|
||||
Color font_color = get_theme_color(SceneStringName(font_color), EditorStringName(Editor));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue