Fix T92466: Crash snapping to text objects with XRay shading

Should have been addressed along with {rB6cff1d648030}
This commit is contained in:
Germano Cavalcante 2021-10-25 11:26:01 -03:00
parent bc2f4dd8b4
commit 1bc28fc73b
Notes: blender-bot 2023-02-14 05:01:20 +01:00
Referenced by issue #92466, Crash snapping to text objects with XRay shading
1 changed files with 1 additions and 1 deletions

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)) {