summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lynge <tlynge@gmail.com>2018-01-05 00:11:54 +0100
committerThomas Lynge <tlynge@gmail.com>2018-01-05 00:11:54 +0100
commit251a0174471db2d39b46c87f8fad18b34e6c9681 (patch)
treed1898b07a6ae10f9ea91a36b7337fef34130be02
parent3f9f0b3dbb534518999d6b10c8e0ee68c1e27793 (diff)
Visual glitch when dragging keyframes #15285
-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 f73c81ed9c..65d0fe8a35 100644
--- a/editor/animation_editor.cpp
+++ b/editor/animation_editor.cpp
@@ -1533,7 +1533,7 @@ void AnimationKeyEditor::_track_editor_draw() {
for (Map<SelectedKey, KeyInfo>::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;