mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
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.
This commit is contained in:
parent
906a4e9db9
commit
ef35ca2d8f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user