From 06bd56866de913209fa146c579952d545203634c Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 29 Jul 2021 16:03:32 +0300 Subject: [PATCH] Change selection shortcuts: Alt is now used to only move selection and Ctrl+Alt makes a quick copy of the selected content --- src/Tools/SelectionTools/SelectionTool.gd | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Tools/SelectionTools/SelectionTool.gd b/src/Tools/SelectionTools/SelectionTool.gd index 4d4e8ee20..488d988ca 100644 --- a/src/Tools/SelectionTools/SelectionTool.gd +++ b/src/Tools/SelectionTools/SelectionTool.gd @@ -77,19 +77,21 @@ func draw_start(position : Vector2) -> void: if offsetted_pos.x >= 0 and offsetted_pos.y >= 0 and project.selection_bitmap.get_bit(offsetted_pos) and (!Tools.control or Tools.alt) and !Tools.shift and !_ongoing_selection: # Move current selection _move = true - if Tools.control and Tools.alt: # Move selection without content - selection_node.transform_content_confirm() - _move_content = false - selection_node.move_borders_start() - else: - _move_content = true - if Tools.alt: # Move the selection without cutting it from the original position / makes a quick copy of it + if Tools.alt: # Move selection without content + if Tools.control: # Move the selection without cutting it from the original position / makes a quick copy of it + _move_content = true selection_node.transform_content_confirm() selection_node.clear_in_selected_cels = false - selection_node.transform_content_start() - if Tools.alt: # Continuation of the above + selection_node.transform_content_start() var cel_image : Image = project.frames[project.current_frame].cels[project.current_layer].image cel_image.blit_rect_mask(selection_node.preview_image, selection_node.preview_image, Rect2(Vector2.ZERO, project.selection_bitmap.get_size()), selection_node.big_bounding_rectangle.position) + else: + selection_node.transform_content_confirm() + _move_content = false + selection_node.move_borders_start() + else: + _move_content = true + selection_node.transform_content_start() else: selection_node.transform_content_confirm()