From aeabfc9697d7595f029a1f8479dd6db9e50c804e Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 3 Jun 2020 00:23:18 +0300 Subject: [PATCH] Replace layer array with class in crop image I forgot to replace that, sorry. --- src/Main.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.gd b/src/Main.gd index ccb44c20a..ebc75db5b 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -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