From 251a0174471db2d39b46c87f8fad18b34e6c9681 Mon Sep 17 00:00:00 2001 From: Thomas Lynge Date: Fri, 5 Jan 2018 00:11:54 +0100 Subject: [PATCH] Visual glitch when dragging keyframes #15285 --- editor/animation_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index f73c81ed9c9..65d0fe8a356 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -1533,7 +1533,7 @@ void AnimationKeyEditor::_track_editor_draw() { for (Map::Element *E = selection.front(); E; E = E->next()) { int idx = E->key().track; - int i = idx - v_scroll->get_value(); + int i = idx - Math::floor(v_scroll->get_value()); if (i < 0 || i >= fit) continue; int y = h + i * h + sep;