Forráskód Böngészése

Visual glitch when dragging keyframes #15285

Thomas Lynge 7 éve
szülő
commit
251a017447
1 módosított fájl, 1 hozzáadás és 1 törlés
  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 - v_scroll->get_value();
+				int i = idx - Math::floor(v_scroll->get_value());
 				if (i < 0 || i >= fit)
 					continue;
 				int y = h + i * h + sep;