mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fix spritesheet exporting from bug introduced in 6fa4a27589
This commit is contained in:
parent
ea8748ca55
commit
53e4ebc668
|
@ -643,13 +643,14 @@ func _blend_layers(
|
||||||
# "Include blended" must be toggled on when saving the pxo file
|
# "Include blended" must be toggled on when saving the pxo file
|
||||||
# in order for this to work.
|
# in order for this to work.
|
||||||
var image_data := zip_reader.read_file(image_path)
|
var image_data := zip_reader.read_file(image_path)
|
||||||
image.set_data(
|
var loaded_image := Image.create_from_data(
|
||||||
image.get_width(),
|
project.size.x,
|
||||||
image.get_height(),
|
project.size.y,
|
||||||
image.has_mipmaps(),
|
image.has_mipmaps(),
|
||||||
image.get_format(),
|
image.get_format(),
|
||||||
image_data
|
image_data
|
||||||
)
|
)
|
||||||
|
image.blend_rect(loaded_image, Rect2i(Vector2i.ZERO, project.size), origin)
|
||||||
else:
|
else:
|
||||||
load_result_from_pxo = false
|
load_result_from_pxo = false
|
||||||
zip_reader.close()
|
zip_reader.close()
|
||||||
|
|
Loading…
Reference in a new issue