Due to recent code changes, `knife_calculate_snap_ref_edges` relied on the (not yet computed) `kcd->curr.mval` to compute the raycast ray. The solution is to pass the computed ray right before. Also `knife_snap_update_from_mval` is now called on the modal to update the edge as soon as the button is pressed. Pull Request: https://projects.blender.org/blender/blender/pulls/135649