summaryrefslogtreecommitdiffstats
path: root/editor/animation_bezier_editor.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-09-04 11:54:38 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-09-04 11:54:38 +0200
commitef35ca2d8f1827457ebf5414ca5f5331e02e567f (patch)
tree4e3a4df88d1f1e8d7ce3de3d0589db1acfaa5e5f /editor/animation_bezier_editor.cpp
parent906a4e9db91c2c6b17a0cb1cddf2a96f64114646 (diff)
downloadredot-engine-ef35ca2d8f1827457ebf5414ca5f5331e02e567f.tar.gz
Use antialiased line drawing in animation Bezier editor
This applies both to tangents and general line drawing, making the animation Bezier editor match the Curve editor inspector.
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r--editor/animation_bezier_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp
index feb5f3d20d..24fcfd3930 100644
--- a/editor/animation_bezier_editor.cpp
+++ b/editor/animation_bezier_editor.cpp
@@ -174,7 +174,7 @@ void AnimationBezierTrackEdit::_draw_track(int p_track, const Color &p_color) {
}
if (lines.size() >= 2) {
- draw_multiline(lines, p_color, Math::round(EDSCALE));
+ draw_multiline(lines, p_color, Math::round(EDSCALE), true);
}
}
}
@@ -208,7 +208,7 @@ void AnimationBezierTrackEdit::_draw_line_clipped(const Vector2 &p_from, const V
from = from.lerp(to, c);
}
- draw_line(from, to, p_color, Math::round(EDSCALE));
+ draw_line(from, to, p_color, Math::round(EDSCALE), true);
}
void AnimationBezierTrackEdit::_notification(int p_what) {