From 30d279c4948b5712dac87bf6575932ca30d1c4dc Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Tue, 14 Mar 2023 14:59:22 +0200 Subject: [PATCH] Fix image brushes being drawn outside the selection --- src/Tools/Draw.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/Draw.gd b/src/Tools/Draw.gd index 8b86cf1a090..884638f7053 100644 --- a/src/Tools/Draw.gd +++ b/src/Tools/Draw.gd @@ -386,8 +386,8 @@ func draw_tool_brush(position: Vector2) -> void: if dst_rect.size == Vector2.ZERO: return var src_rect := Rect2(dst_rect.position - dst, dst_rect.size) - dst = dst_rect.position var brush_image: Image = remove_unselected_parts_of_brush(_brush_image, dst) + dst = dst_rect.position _draw_brush_image(brush_image, src_rect, dst) # Handle Mirroring