1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

SpriteFramesEditor Reallow deselecting frame with LMB press in select frames dialog

(cherry picked from commit e1fb4b4f21)
This commit is contained in:
kleonc
2022-08-13 13:26:37 +02:00
committed by Rémi Verschelde
parent 9f646c867d
commit 0dad6d30ea

View File

@@ -172,7 +172,7 @@ void SpriteFramesEditor::_sheet_preview_input(const Ref<InputEvent> &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);