summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-05 08:00:25 +0100
committerGitHub <noreply@github.com>2018-01-05 08:00:25 +0100
commit5322ed05c722d64f4f9c610328eea2117c111879 (patch)
treee9f5653235b28393ef0640a525d549a3082f2b01 /editor
parent34c988cfa92f19c232b65990704816ba1c7d2622 (diff)
parent509ac1e0b8ef89bf130c54c317f836117e07909a (diff)
Merge pull request #15352 from thomaslynge/anim_drag_key_glitch
Visual glitch when dragging keyframes #15285
Diffstat (limited to 'editor')
-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 23e6c489c4..7e49d1300c 100644
--- a/editor/animation_editor.cpp
+++ b/editor/animation_editor.cpp
@@ -1534,7 +1534,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 - (int)v_scroll->get_value();
if (i < 0 || i >= fit)
continue;
int y = h + i * h + sep;