From 509ac1e0b8ef89bf130c54c317f836117e07909a Mon Sep 17 00:00:00 2001 From: Thomas Lynge Date: Fri, 5 Jan 2018 06:24:17 +0100 Subject: Visual glitch when dragging keyframes #15285. Changed to int cast. --- 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 65d0fe8a35..34f5b27849 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 - Math::floor(v_scroll->get_value()); + int i = idx - (int)v_scroll->get_value(); if (i < 0 || i >= fit) continue; int y = h + i * h + sep; -- cgit v1.2.3