From 6b9f86061886f6969a62a8c6daf7235b7b5a4b52 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 13 May 2021 21:50:55 +0300 Subject: [PATCH] Fix brushes being drawn flipped horizontally My bad! --- src/Tools/Draw.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tools/Draw.gd b/src/Tools/Draw.gd index fb0dd8263..e8e7af03e 100644 --- a/src/Tools/Draw.gd +++ b/src/Tools/Draw.gd @@ -294,11 +294,11 @@ func draw_tool_brush(position : Vector2) -> void: func remove_unselected_parts_of_brush(brush : Image, dst : Vector2) -> Image: var project : Project = Global.current_project + if !project.has_selection: + return brush var size := brush.get_size() var new_brush := Image.new() - new_brush.copy_from(_mirror_brushes.x) - if !project.has_selection: - return new_brush + new_brush.copy_from(brush) new_brush.lock() for x in size.x: