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:
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
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue