mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +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()
|
cel_image.lock()
|
||||||
var color := cel_image.get_pixelv(position)
|
var color := cel_image.get_pixelv(position)
|
||||||
for x in cel_image.get_width():
|
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)
|
var pos := Vector2(x, y)
|
||||||
if color.is_equal_approx(cel_image.get_pixelv(pos)):
|
if color.is_equal_approx(cel_image.get_pixelv(pos)):
|
||||||
if _intersect:
|
if _intersect:
|
||||||
|
|
Loading…
Reference in a new issue