diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/animation_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SelectedKey, KeyInfo>::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; |