1
0
Fork 0
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:
Emmanouil Papadeas 2024-05-25 00:42:34 +03:00
parent 72a2c59986
commit b25ae8b4cc

View file

@ -109,7 +109,7 @@ func draw_move(pos: Vector2i) -> void:
func draw_end(pos: Vector2i) -> void:
_editing_bezier = false
if _is_hovering_first_position(pos):
if _is_hovering_first_position(pos) and _curve.point_count > 1:
_draw_shape()
super.draw_end(pos)