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