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

Fix spritesheet exporting from bug introduced in 6fa4a27589

This commit is contained in:
Emmanouil Papadeas 2024-04-01 23:50:50 +03:00
parent ea8748ca55
commit 53e4ebc668

View file

@ -643,13 +643,14 @@ func _blend_layers(
# "Include blended" must be toggled on when saving the pxo file
# in order for this to work.
var image_data := zip_reader.read_file(image_path)
image.set_data(
image.get_width(),
image.get_height(),
var loaded_image := Image.create_from_data(
project.size.x,
project.size.y,
image.has_mipmaps(),
image.get_format(),
image_data
)
image.blend_rect(loaded_image, Rect2i(Vector2i.ZERO, project.size), origin)
else:
load_result_from_pxo = false
zip_reader.close()