浏览代码

Merge pull request #109271 from Giganzo/animation-right-click

Fix glitched animation key after canceled dragging
Thaddeus Crews 2 周之前
父节点
当前提交
17c7b789c0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/animation/animation_track_editor.cpp

+ 1 - 1
editor/animation/animation_track_editor.cpp

@@ -3163,7 +3163,7 @@ void AnimationTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
 		}
 	}
 
-	if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == MouseButton::RIGHT) {
+	if (!moving_selection && mb.is_valid() && mb->is_pressed() && mb->get_button_index() == MouseButton::RIGHT) {
 		Point2 pos = mb->get_position();
 		if (pos.x >= timeline->get_name_limit() && pos.x <= get_size().width - timeline->get_buttons_width()) {
 			// Can do something with menu too! show insert key.