Skip to content

Commit

Permalink
Fix image brushes being drawn outside the selection
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Mar 14, 2023
1 parent 0cb0f9c commit 30d279c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/Draw.gd
Expand Up @@ -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
Expand Down

0 comments on commit 30d279c

Please sign in to comment.