aboutsummaryrefslogtreecommitdiff
path: root/editor/animation_editor.cpp
diff options
context:
space:
mode:
authorPaolo Perkovic2018-02-05 13:25:50 +0100
committerHein-Pieter van Braam2018-02-19 22:13:46 +0100
commit82b9a13e0c2c2963f163fbd925d1b0a3204daafc (patch)
treedd68933b19794aa2cbabefaddbfa2362f8b9b83f /editor/animation_editor.cpp
parent79ef5f92a95f6dcb8c10420484e7de23313ce271 (diff)
downloadgodot-82b9a13e0c2c2963f163fbd925d1b0a3204daafc.tar.gz
godot-82b9a13e0c2c2963f163fbd925d1b0a3204daafc.tar.zst
godot-82b9a13e0c2c2963f163fbd925d1b0a3204daafc.zip
Fix timeline track name overlapping keyframe area
(cherry picked from commit 398f5b74e3f1d0131f28ca13dfd6d0308c40d54e)
Diffstat (limited to 'editor/animation_editor.cpp')
-rw-r--r--editor/animation_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp
index 91aa189c8..cd8233e46 100644
--- a/editor/animation_editor.cpp
+++ b/editor/animation_editor.cpp
@@ -1359,7 +1359,7 @@ void AnimationKeyEditor::_track_editor_draw() {
Color ncol = color;
if (n && editor_selection->is_selected(n))
ncol = track_select_color;
- te->draw_string(font, Point2(ofs + Point2(left_check_ofs + sep + type_icon[0]->get_width() + sep, y + font->get_ascent() + (sep / 2))).floor(), np, ncol, name_limit - (type_icon[0]->get_width() + sep) - 5);
+ te->draw_string(font, Point2(ofs + Point2(left_check_ofs + sep + type_icon[0]->get_width() + sep, y + font->get_ascent() + (sep / 2))).floor(), np, ncol, name_limit - (left_check_ofs + sep) - (type_icon[0]->get_width() + sep) - 5);
// Draw separator line below track area
if (!obj)