Fix #109130: Crash with Snap Project Individual

Caused by 3df2110abd

`dist_px` can be `nullptr`.
This commit is contained in:
Germano Cavalcante
2023-06-19 14:26:58 -03:00
parent 7764c87528
commit cedec09d05

View File

@@ -1715,7 +1715,7 @@ eSnapMode ED_transform_snap_object_project_view3d_ex(SnapObjectContext *sctx,
mval,
init_co,
prev_co,
square_f(*dist_px),
dist_px ? square_f(*dist_px) : FLT_MAX,
nullptr,
use_occlusion_test))
{