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:
parent
66b3aa950f
commit
d0fef33231
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue