mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 16:34:48 -04:00
Replace layer array with class in crop image
I forgot to replace that, sorry.
This commit is contained in:
parent
881e53dadc
commit
aeabfc9697
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue