diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-11-28 11:32:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 11:32:16 +0300 |
commit | 4a3588a51a9dfde3c8e1155aa2ab80c48cb0c19a (patch) | |
tree | e435bd63065b3328ce199202b0552aed4d94a076 /scene/gui | |
parent | 94341ac547002d5d1e338fa115754035d44f51d2 (diff) | |
parent | 3ec972fc95f3d9fb308af0fded69fc7e53940f78 (diff) |
Merge pull request #43828 from Chaosus/restore_line_antialiasing
Restored antialiased lines by emulation using triangle strips
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/graph_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index ad02aaade5..96810e8707 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -659,9 +659,9 @@ void GraphEdit::_draw_cos_line(CanvasItem *p_where, const Vector2 &p_from, const colors.push_back(p_to_color); #ifdef TOOLS_ENABLED - p_where->draw_polyline_colors(points, colors, Math::floor(2 * EDSCALE)); + p_where->draw_polyline_colors(points, colors, Math::floor(2 * EDSCALE), true); #else - p_where->draw_polyline_colors(points, colors, 2); + p_where->draw_polyline_colors(points, colors, 2, true); #endif } |