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

Second attempt to fix a visual bug with resize canvas' dialog preview

This commit is contained in:
Emmanouil Papadeas 2024-09-12 21:08:32 +03:00
parent 462a95a5ae
commit 6ad23f8485

View file

@ -17,6 +17,7 @@ var image := Image.create(1, 1, false, Image.FORMAT_RGBA8)
func _on_ResizeCanvas_about_to_show() -> void: func _on_ResizeCanvas_about_to_show() -> void:
Global.canvas.selection.transform_content_confirm() Global.canvas.selection.transform_content_confirm()
image.resize(Global.current_project.size.x, Global.current_project.size.y) 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] var frame := Global.current_project.frames[Global.current_project.current_frame]
DrawingAlgos.blend_layers(image, frame) DrawingAlgos.blend_layers(image, frame)
width_spinbox.value = Global.current_project.size.x width_spinbox.value = Global.current_project.size.x