mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Second attempt to fix a visual bug with resize canvas' dialog preview
This commit is contained in:
parent
462a95a5ae
commit
6ad23f8485
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue