From 4c38467014f2d317d0fdcd6bb3188aadba397612 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 13 Apr 2020 15:25:50 +0300 Subject: [PATCH] Don't do undo/redo on the zoom tool --- Scripts/Canvas.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 07441bcf1..2fc5b64be 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -320,14 +320,14 @@ func _input(event : InputEvent) -> void: if mouse_pressed: if can_handle || is_making_line: - if current_action != "None" && current_action != "ColorPicker": + if current_action != "None" && current_action != "ColorPicker" && current_action != "Zoom": if current_action == "RectSelect": handle_undo("Rectangle Select") else: handle_undo("Draw") elif (Input.is_action_just_released("left_mouse") && !Input.is_action_pressed("right_mouse")) || (Input.is_action_just_released("right_mouse") && !Input.is_action_pressed("left_mouse")): if can_handle || Global.undos == Global.undo_redo.get_version(): - if previous_action != "None" && previous_action != "RectSelect" && current_action != "ColorPicker": + if previous_action != "None" && previous_action != "RectSelect" && current_action != "ColorPicker" && current_action != "Zoom": handle_redo("Draw") match current_action: # Handle current tool