소스 검색

`SpriteFramesEditor` Reallow deselecting frame with LMB press in select frames dialog

kleonc 3 년 전
부모
커밋
e1fb4b4f21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/plugins/sprite_frames_editor_plugin.cpp

+ 1 - 1
editor/plugins/sprite_frames_editor_plugin.cpp

@@ -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);