Skip to content

Commit

Permalink
Reset TileMap editor drag_type by using the _stop_dragging() functi…
Browse files Browse the repository at this point in the history
…on when the toolbar mode is not selected
  • Loading branch information
Wiltof committed Dec 14, 2023
1 parent 84692c6 commit 5a3de5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/tiles/tile_map_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ bool TileMapEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEvent> &p
}

if (CanvasItemEditor::get_singleton()->get_current_tool() != CanvasItemEditor::TOOL_SELECT) {
_stop_dragging();
return false;
}

Expand Down

0 comments on commit 5a3de5b

Please sign in to comment.