mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-14 15:25:17 +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].
|
## Get the [member _curve]'s baked points, and draw lines between them using [method _fill_gap].
|
||||||
func _bezier() -> Array[Vector2i]:
|
func _bezier() -> Array[Vector2i]:
|
||||||
var last_pixel := Global.canvas.current_pixel
|
var last_pixel := Global.canvas.current_pixel.floor()
|
||||||
if Global.mirror_view:
|
if Global.mirror_view:
|
||||||
# Mirror the last point of the curve
|
# Mirror the last point of the curve
|
||||||
last_pixel.x = (Global.current_project.size.x - 1) - last_pixel.x
|
last_pixel.x = (Global.current_project.size.x - 1) - last_pixel.x
|
||||||
|
|
Loading…
Add table
Reference in a new issue