Procházet zdrojové kódy

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

Fix glitched animation key after canceled dragging
Thaddeus Crews před 2 týdny
rodič
revize
17c7b789c0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.