mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Replace layer array with class in crop image
I forgot to replace that, sorry.
This commit is contained in:
parent
881e53dadc
commit
aeabfc9697
|
@ -407,7 +407,7 @@ func crop_image() -> void:
|
|||
if used_rect != Rect2(0, 0, 0, 0):
|
||||
break
|
||||
else:
|
||||
if layer[0].get_used_rect() != Rect2(0, 0, 0, 0):
|
||||
if layer.image.get_used_rect() != Rect2(0, 0, 0, 0):
|
||||
used_rect = layer.image.get_used_rect()
|
||||
|
||||
# Merge all layers with content
|
||||
|
|
Loading…
Reference in a new issue