From 52501cdca342c6f80c0ce93c2d8e2ea9e6a69de5 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 28 Jul 2024 17:05:47 +0300 Subject: [PATCH] Fix errors with the bucket tool when it's outside of bounds --- src/Tools/DesignTools/Bucket.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tools/DesignTools/Bucket.gd b/src/Tools/DesignTools/Bucket.gd index ca324a974..721558c98 100644 --- a/src/Tools/DesignTools/Bucket.gd +++ b/src/Tools/DesignTools/Bucket.gd @@ -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)