Fix T92466: Crash snapping to text objects with XRay shading
Should have been addressed along with {rB6cff1d648030}
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user