Merge pull request #93747 from KoBeWi/layer_of_bugs

Fix some TileMapLayer editing problems
This commit is contained in:
Rémi Verschelde 2024-06-29 19:54:30 +02:00
commit 4ab8fb8093
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 7 additions and 3 deletions

View file

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