1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fix image brushes being drawn outside the selection

This commit is contained in:
Emmanouil Papadeas 2023-03-14 14:59:22 +02:00
parent 0cb0f9c1bd
commit 30d279c494

View file

@ -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