From 2518f723190d9ffb3f693195017c4f4c4520fe65 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:43:04 +0300 Subject: [PATCH] Fix Select by Color not working properly on non-square canvases --- src/Tools/SelectionTools/ColorSelect.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/SelectionTools/ColorSelect.gd b/src/Tools/SelectionTools/ColorSelect.gd index 55964dad0..9e69dbd2d 100644 --- a/src/Tools/SelectionTools/ColorSelect.gd +++ b/src/Tools/SelectionTools/ColorSelect.gd @@ -21,7 +21,7 @@ func apply_selection(position : Vector2) -> void: cel_image.lock() var color := cel_image.get_pixelv(position) for x in cel_image.get_width(): - for y in cel_image.get_width(): + for y in cel_image.get_height(): var pos := Vector2(x, y) if color.is_equal_approx(cel_image.get_pixelv(pos)): if _intersect: