Browse Source

Merge pull request #16410 from bcr3ative/issue_16406

Fix timeline track name overlapping keyframe area
Rémi Verschelde 7 năm trước cách đây
mục cha
commit
427077a5f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/animation_editor.cpp

+ 1 - 1
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)