Fix #110970: knife project is broken

Error in 5cdec2f12a

`ED_view3d_win_to_segment_clipped` returns the ray_end directly.

The code was treating it as if it were a direction.
This commit is contained in:
Germano Cavalcante
2023-08-12 10:47:49 -03:00
parent 8814101a20
commit 6332eecda0

View File

@@ -1504,7 +1504,6 @@ static void knife_input_ray_segment(KnifeTool_OpData *kcd,
/* Unproject to find view ray. */
ED_view3d_win_to_segment_clipped(
kcd->vc.depsgraph, kcd->region, kcd->vc.v3d, mval, r_origin, r_end, false);
add_v3_v3(r_end, r_origin);
}
/* No longer used, but may be useful in the future. */