浏览代码

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

Thomas Lynge 7 年之前
父节点
当前提交
509ac1e0b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/animation_editor.cpp

+ 1 - 1
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;