Make timeline cursor in the Bezier editor just as thick as the Animation editor
(cherry picked from commit 20c1196bb0
)
This commit is contained in:
parent
35523a46c0
commit
f2fe197398
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
||||||
#include "animation_bezier_editor.h"
|
#include "animation_bezier_editor.h"
|
||||||
|
|
||||||
#include "editor/editor_node.h"
|
#include "editor/editor_node.h"
|
||||||
|
#include "editor_scale.h"
|
||||||
|
|
||||||
float AnimationBezierTrackEdit::_bezier_h_to_pixel(float p_h) {
|
float AnimationBezierTrackEdit::_bezier_h_to_pixel(float p_h) {
|
||||||
float h = p_h;
|
float h = p_h;
|
||||||
|
@ -541,7 +542,7 @@ void AnimationBezierTrackEdit::_play_position_draw() {
|
||||||
|
|
||||||
if (px >= timeline->get_name_limit() && px < (get_size().width - timeline->get_buttons_width())) {
|
if (px >= timeline->get_name_limit() && px < (get_size().width - timeline->get_buttons_width())) {
|
||||||
Color color = get_color("accent_color", "Editor");
|
Color color = get_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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue