1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +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): if used_rect != Rect2(0, 0, 0, 0):
break break
else: 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() used_rect = layer.image.get_used_rect()
# Merge all layers with content # Merge all layers with content