From 97847a94c7329c9c63b26197e0c6a5db8232398e Mon Sep 17 00:00:00 2001 From: PinyaColada <72302480+PinyaColada@users.noreply.github.com> Date: Fri, 9 Oct 2020 12:19:36 +0200 Subject: [PATCH] Sync (#346) --- src/SelectionRectangle.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SelectionRectangle.gd b/src/SelectionRectangle.gd index 373410de7..06000ea87 100644 --- a/src/SelectionRectangle.gd +++ b/src/SelectionRectangle.gd @@ -133,7 +133,7 @@ func cut() -> void: # This is basically the same as copy + delete var brush = _clipboard.get_rect(_clipboard.get_used_rect()) project.brushes.append(brush) Brushes.add_project_brush(brush) - move_end() # The selection_rectangle can be used while is moved, this prevents malfunctioning + move_end() # The selection_rectangle can be used while is moving, this prevents malfunctioning image.blit_rect(_clear_image, rect, _selected_rect.position) commit_undo("Draw", undo_data) @@ -147,6 +147,7 @@ func paste() -> void: var size := _selected_rect.size var rect = Rect2(Vector2.ZERO, size) image.blend_rect(_clipboard, rect, _selected_rect.position) + move_end() # The selection_rectangle can be used while is moving, this prevents malfunctioning commit_undo("Draw", undo_data) @@ -158,6 +159,7 @@ func delete() -> void: var rect = Rect2(Vector2.ZERO, size) _clear_image.resize(size.x, size.y, Image.INTERPOLATE_NEAREST) image.blit_rect(_clear_image, rect, _selected_rect.position) + move_end() # The selection_rectangle can be used while is moving, this prevents malfunctioning commit_undo("Draw", undo_data)