File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -763,9 +763,13 @@ bool TileMapLayerEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEven
763763 }
764764
765765 } else {
766- // Released
767- _stop_dragging ();
766+ // Released.
768767 drag_erasing = false ;
768+ if (drag_type == DRAG_TYPE_NONE) {
769+ return false ;
770+ } else {
771+ _stop_dragging ();
772+ }
769773 }
770774
771775 CanvasItemEditor::get_singleton ()->update_viewport ();
Original file line number Diff line number Diff line change @@ -1889,7 +1889,7 @@ void TileMapLayer::_update_self_texture_repeat(RS::CanvasItemTextureRepeat p_tex
18891889
18901890#ifdef TOOLS_ENABLED
18911891bool TileMapLayer::_edit_is_selected_on_click (const Point2 &p_point, double p_tolerance) const {
1892- return get_cell_source_id (local_to_map (p_point)) != TileSet::INVALID_SOURCE;
1892+ return tile_set. is_valid () && get_cell_source_id (local_to_map (p_point)) != TileSet::INVALID_SOURCE;
18931893}
18941894#endif
18951895
You can’t perform that action at this time.
0 commit comments