Skip to content

Commit

Permalink
Fix RMB erasing of tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Jul 2, 2024
1 parent 9425535 commit af28d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/tiles/tile_map_layer_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit af28d58

Please sign in to comment.