From bc8fadb67cb6cbe724932798c6cc139383a6fd4e Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Fri, 19 Jan 2024 18:25:50 +0200 Subject: [PATCH] Fix cel button image texture breaking when the image gets resized --- src/Autoload/Global.gd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 1fbe945eb..670b75594 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -769,9 +769,7 @@ func undo_or_redo( if current_cel is Cel3D: current_cel.size_changed(project.size) else: - current_cel.image_texture = ImageTexture.create_from_image( - current_cel.get_image() - ) + current_cel.image_texture.set_image(current_cel.get_image()) canvas.camera_zoom() canvas.grid.queue_redraw() canvas.pixel_grid.queue_redraw()