mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Fix errors with the bucket tool when it's outside of bounds
This commit is contained in:
parent
41e21cd9b0
commit
52501cdca3
|
@ -155,6 +155,10 @@ func draw_start(pos: Vector2i) -> void:
|
|||
_pick_color(pos)
|
||||
return
|
||||
_undo_data = _get_undo_data()
|
||||
if !Global.current_project.layers[Global.current_project.current_layer].can_layer_get_drawn():
|
||||
return
|
||||
if not Global.current_project.can_pixel_get_drawn(pos):
|
||||
return
|
||||
fill(pos)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue