소스 검색

Fix RMB erasing of tiles

kobewi 1 년 전
부모
커밋
af28d58215
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      editor/plugins/tiles/tile_map_layer_editor.cpp

+ 2 - 1
editor/plugins/tiles/tile_map_layer_editor.cpp

@@ -764,12 +764,13 @@ bool TileMapLayerEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEven
 
 			} else {
 				// Released.
-				drag_erasing = false;
 				if (drag_type == DRAG_TYPE_NONE) {
+					drag_erasing = false;
 					return false;
 				} else {
 					_stop_dragging();
 				}
+				drag_erasing = false;
 			}
 
 			CanvasItemEditor::get_singleton()->update_viewport();