From 6ad23f84859622a8497504b790a359df0177cd8e Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:08:32 +0300 Subject: [PATCH] Second attempt to fix a visual bug with resize canvas' dialog preview --- src/UI/Dialogs/ImageEffects/ResizeCanvas.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Dialogs/ImageEffects/ResizeCanvas.gd b/src/UI/Dialogs/ImageEffects/ResizeCanvas.gd index 3fcff4c67..d3805dee3 100644 --- a/src/UI/Dialogs/ImageEffects/ResizeCanvas.gd +++ b/src/UI/Dialogs/ImageEffects/ResizeCanvas.gd @@ -17,6 +17,7 @@ var image := Image.create(1, 1, false, Image.FORMAT_RGBA8) func _on_ResizeCanvas_about_to_show() -> void: Global.canvas.selection.transform_content_confirm() image.resize(Global.current_project.size.x, Global.current_project.size.y) + image.fill(Color(0.0, 0.0, 0.0, 0.0)) var frame := Global.current_project.frames[Global.current_project.current_frame] DrawingAlgos.blend_layers(image, frame) width_spinbox.value = Global.current_project.size.x