Fix T91734: Crash snapping mesh if a beveled curve is present

`BKE_mesh_boundbox_get` cannot be called for objects of type Curve.

The BoundBox however does not match the object seen in the scene.
This will be dealt with in another commit.
This commit is contained in:
Germano Cavalcante 2021-09-30 02:30:47 -03:00
parent dd3391dd99
commit 6cff1d6480
Notes: blender-bot 2023-02-14 03:21:27 +01:00
Referenced by commit 1bc28fc73b, Fix T92466: Crash snapping to text objects with XRay shading
Referenced by issue #91734, Crash snapping mesh if a beveled curve is present
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ static bool raycastMesh(SnapObjectContext *sctx,
}
/* Test BoundBox */
BoundBox *bb = BKE_mesh_boundbox_get(ob_eval);
BoundBox *bb = BKE_object_boundbox_get(ob_eval);
if (bb) {
/* was BKE_boundbox_ray_hit_check, see: cf6ca226fa58 */
if (!isect_ray_aabb_v3_simple(