summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-18 22:49:02 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-18 22:49:02 +0100
commitd93b66ad4d6b1dae42cc318c16224d03bd1a1472 (patch)
treec430d2126625614a93ea12c740350e00afa81a67
parentacd62443b665f57560db64912f833286eafa4971 (diff)
parentd77b2fedddffe3863d9d951aa88f307aff45487e (diff)
Merge pull request #71648 from clayjohn/ED-UV-scale
Use a fixed width of 1 pixel for editor debug UV drawing
-rw-r--r--editor/plugins/mesh_instance_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.cpp b/editor/plugins/mesh_instance_3d_editor_plugin.cpp
index 35b7367393..e8976667dd 100644
--- a/editor/plugins/mesh_instance_3d_editor_plugin.cpp
+++ b/editor/plugins/mesh_instance_3d_editor_plugin.cpp
@@ -460,7 +460,7 @@ void MeshInstance3DEditor::_debug_uv_draw() {
debug_uv->draw_rect(Rect2(Vector2(), debug_uv->get_size()), get_theme_color(SNAME("dark_color_3"), SNAME("Editor")));
debug_uv->draw_set_transform(Vector2(), 0, debug_uv->get_size());
// Use a translucent color to allow overlapping triangles to be visible.
- debug_uv->draw_multiline(uv_lines, get_theme_color(SNAME("mono_color"), SNAME("Editor")) * Color(1, 1, 1, 0.5), Math::round(EDSCALE));
+ debug_uv->draw_multiline(uv_lines, get_theme_color(SNAME("mono_color"), SNAME("Editor")) * Color(1, 1, 1, 0.5));
}
void MeshInstance3DEditor::_create_outline_mesh() {