diff --git a/src/SelectionRectangle.gd b/src/SelectionRectangle.gd index 373410d..06000ea 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)