ソースを参照

Merge pull request #15352 from thomaslynge/anim_drag_key_glitch

Visual glitch when dragging keyframes #15285
Rémi Verschelde 7 年 前
コミット
5322ed05c7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      editor/animation_editor.cpp

+ 1 - 1
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()) {
 			for (Map<SelectedKey, KeyInfo>::Element *E = selection.front(); E; E = E->next()) {
 
 
 				int idx = E->key().track;
 				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)
 				if (i < 0 || i >= fit)
 					continue;
 					continue;
 				int y = h + i * h + sep;
 				int y = h + i * h + sep;