1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Ensure that the preview clears when switching to a different tool

This commit is contained in:
Emmanouil Papadeas 2024-10-13 14:22:01 +03:00
parent a2e5d165cb
commit 9899734090

View file

@ -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