Skip to content

Commit

Permalink
Fix brushes being able to get drawn outside of the selection, if the…
Browse files Browse the repository at this point in the history
… selection is outside the canvas
  • Loading branch information
OverloadedOrama committed Apr 13, 2024
1 parent c1cdc30 commit 5f43a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/Draw.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f43a3e

Please sign in to comment.