[Bf-blender-cvs] [1bc28fc73b9] master: Fix T92466: Crash snapping to text objects with XRay shading
Germano Cavalcante
noreply at git.blender.org
Mon Oct 25 16:27:10 CEST 2021
Commit: 1bc28fc73b9cf6ffa873c6fb0d2f6c3e9e7aaf2b
Author: Germano Cavalcante
Date: Mon Oct 25 11:26:01 2021 -0300
Branches: master
https://developer.blender.org/rB1bc28fc73b9cf6ffa873c6fb0d2f6c3e9e7aaf2b
Fix T92466: Crash snapping to text objects with XRay shading
Should have been addressed along with {rB6cff1d648030}
===================================================================
M source/blender/editors/transform/transform_snap_object.c
===================================================================
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index dea8a7c6f03..f5f3fafe897 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -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)) {
More information about the Bf-blender-cvs
mailing list