From e1fb4b4f216c87e6662f0cbab3be7fdc5501e828 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sat, 13 Aug 2022 13:26:37 +0200 Subject: [PATCH] `SpriteFramesEditor` Reallow deselecting frame with LMB press in select frames dialog --- editor/plugins/sprite_frames_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 6d2a00780f3..4a5df657332 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -172,7 +172,7 @@ void SpriteFramesEditor::_sheet_preview_input(const Ref &p_event) { // Prevent double-toggling the same frame when moving the mouse when the mouse button is still held. frames_toggled_by_mouse_hover.insert(idx); - if (mb->get_control()) { + if (frames_selected.has(idx)) { frames_selected.erase(idx); } else { frames_selected.insert(idx);