Skip to content

Commit 5f43a3e

Browse files
Fix brushes being able to get drawn outside of the selection, if the selection is outside the canvas
1 parent c1cdc30 commit 5f43a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/Draw.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func remove_unselected_parts_of_brush(brush: Image, dst: Vector2) -> Image:
432432
for x in size.x:
433433
for y in size.y:
434434
var pos := Vector2(x, y) + dst
435-
if !project.selection_map.is_pixel_selected(pos):
435+
if !project.can_pixel_get_drawn(pos):
436436
new_brush.set_pixel(x, y, Color(0))
437437
new_brush.unlock()
438438
return new_brush

0 commit comments

Comments
 (0)