diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-02 11:06:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 11:06:42 +0200 |
commit | b46627e7b2872caa0e0141e8c45179b1000964af (patch) | |
tree | 4e99d7dd8f244d89983154b4bcf7c6883c4f56a5 | |
parent | b65ebfc7e720a947d3dab16824aa9975d50c5771 (diff) | |
parent | 20c1196bb0db811b00aa195966d7d4c1267c5282 (diff) |
Merge pull request #40041 from YeldhamDev/anim_bezier_timeline_thicc
Make timeline cursor in the Bezier editor just as thick as the Animation editor
-rw-r--r-- | editor/animation_bezier_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index f880ece88b..e52f234218 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -31,6 +31,7 @@ #include "animation_bezier_editor.h" #include "editor/editor_node.h" +#include "editor_scale.h" float AnimationBezierTrackEdit::_bezier_h_to_pixel(float p_h) { float h = p_h; @@ -539,7 +540,7 @@ void AnimationBezierTrackEdit::_play_position_draw() { if (px >= timeline->get_name_limit() && px < (get_size().width - timeline->get_buttons_width())) { Color color = get_theme_color("accent_color", "Editor"); - play_position->draw_line(Point2(px, 0), Point2(px, h), color); + play_position->draw_line(Point2(px, 0), Point2(px, h), color, Math::round(2 * EDSCALE)); } } |