diff options
| author | Poommetee Ketson | 2018-02-22 20:51:28 +0700 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-01 21:18:58 +0100 |
| commit | 0aab4294539f2c5356d97ac2f0a6caee121a7f87 (patch) | |
| tree | 9b98096ae0d39c69217bb2236a1111bba596eb01 /editor/animation_editor.cpp | |
| parent | 61fd30c00e2f43bc4fe2e5a6f04e3fb38b05f000 (diff) | |
| download | godot-0aab4294539f2c5356d97ac2f0a6caee121a7f87.tar.gz godot-0aab4294539f2c5356d97ac2f0a6caee121a7f87.tar.zst godot-0aab4294539f2c5356d97ac2f0a6caee121a7f87.zip | |
AnimationEditor: fix time indicator offset
(cherry picked from commit acf54f8bdc03df59433eb17a55c39391fcd0da53)
Diffstat (limited to 'editor/animation_editor.cpp')
| -rw-r--r-- | editor/animation_editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index c064f9cbd..1b97a2496 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -1157,7 +1157,7 @@ void AnimationKeyEditor::_track_editor_draw() { Ref<Texture> type_hover = get_icon("KeyHover", "EditorIcons"); Ref<Texture> type_selected = get_icon("KeySelected", "EditorIcons"); - int right_separator_ofs = down_icon->get_width() * 3 + add_key_icon->get_width() + interp_icon[0]->get_width() + wrap_icon[0]->get_width() + cont_icon[0]->get_width() + hsep * 9; + int right_separator_ofs = right_data_size_cache; int h = font->get_height() + sep; @@ -1830,7 +1830,7 @@ void AnimationKeyEditor::_track_editor_gui_input(const Ref<InputEvent> &p_input) get_icon("KeyXform", "EditorIcons"), get_icon("KeyCall", "EditorIcons") }; - int right_separator_ofs = down_icon->get_width() * 3 + add_key_icon->get_width() + interp_icon[0]->get_width() + wrap_icon[0]->get_width() + cont_icon[0]->get_width() + hsep * 9; + int right_separator_ofs = right_data_size_cache; int h = font->get_height() + sep; @@ -3042,7 +3042,7 @@ void AnimationKeyEditor::_notification(int p_what) { get_icon("InterpWrapClamp", "EditorIcons"), get_icon("InterpWrapLoop", "EditorIcons"), }; - right_data_size_cache = down_icon->get_width() * 3 + add_key_icon->get_width() + interp_icon[0]->get_width() + cont_icon[0]->get_width() + wrap_icon[0]->get_width() + hsep * 8; + right_data_size_cache = down_icon->get_width() * 3 + add_key_icon->get_width() + interp_icon[0]->get_width() + cont_icon[0]->get_width() + wrap_icon[0]->get_width() + hsep * 9; } } break; } |
