Skip to content

Commit 17c7b78

Browse files
committed
Merge pull request #109271 from Giganzo/animation-right-click
Fix glitched animation key after canceled dragging
2 parents a109836 + 47e3cc1 commit 17c7b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/animation/animation_track_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3163,7 +3163,7 @@ void AnimationTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
31633163
}
31643164
}
31653165

3166-
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == MouseButton::RIGHT) {
3166+
if (!moving_selection && mb.is_valid() && mb->is_pressed() && mb->get_button_index() == MouseButton::RIGHT) {
31673167
Point2 pos = mb->get_position();
31683168
if (pos.x >= timeline->get_name_limit() && pos.x <= get_size().width - timeline->get_buttons_width()) {
31693169
// Can do something with menu too! show insert key.

0 commit comments

Comments
 (0)