1
1

Fix T92466: Crash snapping to text objects with XRay shading

Should have been addressed along with {rB6cff1d648030}
This commit is contained in:
2021-10-25 11:26:01 -03:00
parent bc2f4dd8b4
commit 1bc28fc73b

View File

@@ -2308,7 +2308,7 @@ static short snapMesh(SnapObjectContext *sctx,
float dist_px_sq = square_f(*dist_px);
/* Test BoundBox */
BoundBox *bb = BKE_mesh_boundbox_get(ob_eval);
BoundBox *bb = BKE_object_boundbox_get(ob_eval);
if (bb &&
!snap_bound_box_check_dist(
bb->vec[0], bb->vec[6], lpmat, sctx->runtime.win_size, sctx->runtime.mval, dist_px_sq)) {