Fix #115830: Poly Build tool crash with clipping borders

Since 02ee5a7693 we cant call `ED_view3d_win_to_ray_clipped_ex` with
null `r_ray_end`, `ED_view3d_clip_segment` relies on it.

To fix this, just pass a dummy from `ED_view3d_win_to_ray_clipped`.

Pull Request: https://projects.blender.org/blender/blender/pulls/115840
This commit is contained in:
Philipp Oeser
2023-12-06 14:13:07 +01:00
committed by Philipp Oeser
parent 6af92e1360
commit 79ed05b29f

View File

@@ -399,8 +399,9 @@ bool ED_view3d_win_to_ray_clipped(Depsgraph *depsgraph,
float r_ray_normal[3],
const bool do_clip_planes)
{
float ray_end_dummy[3];
return ED_view3d_win_to_ray_clipped_ex(
depsgraph, region, v3d, mval, do_clip_planes, nullptr, r_ray_normal, r_ray_start, nullptr);
depsgraph, region, v3d, mval, do_clip_planes, nullptr, r_ray_normal, r_ray_start, ray_end_dummy);
}
void ED_view3d_win_to_ray(const ARegion *region,