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:
parent
a3f8c960ab
commit
2518f72319
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue