1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-13 23:05:20 +00:00

Fix a curve tool preview bug where the preview was changing when the cursor was moving, but the end point was staying the same

Fix by @Variable-ind
This commit is contained in:
Emmanouil Papadeas 2025-03-01 14:57:01 +02:00
parent 66b3aa950f
commit d0fef33231

View file

@ -213,7 +213,7 @@ func _clear() -> void:
## Get the [member _curve]'s baked points, and draw lines between them using [method _fill_gap].
func _bezier() -> Array[Vector2i]:
var last_pixel := Global.canvas.current_pixel
var last_pixel := Global.canvas.current_pixel.floor()
if Global.mirror_view:
# Mirror the last point of the curve
last_pixel.x = (Global.current_project.size.x - 1) - last_pixel.x