소스 검색

Merge pull request #97564 from kitbdev/animation-bezier-editor-fix-box-select-mouse

Fix mouse clamping in Animation Bezier Editor box select
Thaddeus Crews 11 달 전
부모
커밋
324659f0ca
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      editor/animation_bezier_editor.cpp

+ 0 - 5
editor/animation_bezier_editor.cpp

@@ -1501,11 +1501,6 @@ void AnimationBezierTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
 		}
 
 		box_selection_to = mm->get_position();
-
-		if (get_local_mouse_position().y < 0) {
-			// Avoid cursor from going too above, so it does not lose focus with viewport.
-			warp_mouse(Vector2(get_local_mouse_position().x, 0));
-		}
 		queue_redraw();
 	}