1
0
Fork 0
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:
Manolis Papadeas 2020-06-03 00:23:18 +03:00 committed by GitHub
parent 881e53dadc
commit aeabfc9697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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