1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix Select by Color not working properly on non-square canvases

This commit is contained in:
Manolis Papadeas 2021-08-25 16:43:04 +03:00
parent a3f8c960ab
commit 2518f72319

View file

@ -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: