[Bf-blender-cvs] [6cff1d64803] master: Fix T91734: Crash snapping mesh if a beveled curve is present

Germano Cavalcante noreply at git.blender.org
Thu Sep 30 18:15:13 CEST 2021


Commit: 6cff1d648030f65bc299b1abd480c5a36504863d
Author: Germano Cavalcante
Date:   Thu Sep 30 02:30:47 2021 -0300
Branches: master
https://developer.blender.org/rB6cff1d648030f65bc299b1abd480c5a36504863d

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.

===================================================================

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 811f30c96e5..883a89b8467 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -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(



More information about the Bf-blender-cvs mailing list