From 98997340906089abcc0ebba8a7e73a9e851ecdc0 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 13 Oct 2024 14:22:01 +0300 Subject: [PATCH] Ensure that the preview clears when switching to a different tool --- src/Tools/BaseTool.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tools/BaseTool.gd b/src/Tools/BaseTool.gd index c022e0437..519f5aa49 100644 --- a/src/Tools/BaseTool.gd +++ b/src/Tools/BaseTool.gd @@ -374,3 +374,4 @@ func _add_polylines_segment(lines: Array, start: Vector2i, end: Vector2i) -> voi func _exit_tree() -> void: if is_moving: draw_end(Global.canvas.current_pixel.floor()) + Global.canvas.previews_sprite.texture = null