Visual glitch when dragging keyframes #15285. Changed to int cast.

This commit is contained in:
Thomas Lynge 2018-01-05 06:24:17 +01:00
parent 251a017447
commit 509ac1e0b8

View file

@ -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;