mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix brushes being able to get drawn outside of the selection, if the selection is outside the canvas
This commit is contained in:
parent
c1cdc304f2
commit
5f43a3e282
|
@ -432,7 +432,7 @@ func remove_unselected_parts_of_brush(brush: Image, dst: Vector2) -> Image:
|
|||
for x in size.x:
|
||||
for y in size.y:
|
||||
var pos := Vector2(x, y) + dst
|
||||
if !project.selection_map.is_pixel_selected(pos):
|
||||
if !project.can_pixel_get_drawn(pos):
|
||||
new_brush.set_pixel(x, y, Color(0))
|
||||
new_brush.unlock()
|
||||
return new_brush
|
||||
|
|
Loading…
Reference in a new issue