1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
This commit is contained in:
OverloadedOrama 2020-02-17 14:47:15 +02:00
parent 695c4a4dbe
commit 15db2dd960

View file

@ -88,6 +88,7 @@ func save_sprite(canvas : Canvas, path : String) -> void:
layer[0].lock() layer[0].lock()
if resize != 100: if resize != 100:
whole_image.unlock()
whole_image.resize(whole_image.get_size().x * resize / 100, whole_image.get_size().y * resize / 100, interpolation) whole_image.resize(whole_image.get_size().x * resize / 100, whole_image.get_size().y * resize / 100, interpolation)
var err = whole_image.save_png(path) var err = whole_image.save_png(path)
if err != OK: if err != OK: