mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix curve being immediately applied if the user presses and releases immediately
This commit is contained in:
parent
72a2c59986
commit
b25ae8b4cc
|
@ -109,7 +109,7 @@ func draw_move(pos: Vector2i) -> void:
|
||||||
|
|
||||||
func draw_end(pos: Vector2i) -> void:
|
func draw_end(pos: Vector2i) -> void:
|
||||||
_editing_bezier = false
|
_editing_bezier = false
|
||||||
if _is_hovering_first_position(pos):
|
if _is_hovering_first_position(pos) and _curve.point_count > 1:
|
||||||
_draw_shape()
|
_draw_shape()
|
||||||
super.draw_end(pos)
|
super.draw_end(pos)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue