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