[Bf-blender-cvs] [9b2f2120163] blender-v3.0-release: Fix T92939: Crash on drop when a curve is the active object

Germano Cavalcante noreply at git.blender.org
Tue Nov 9 15:27:16 CET 2021


Commit: 9b2f2120163286bf08fa5ed341fa01eea8283dca
Author: Germano Cavalcante
Date:   Tue Nov 9 11:09:49 2021 -0300
Branches: blender-v3.0-release
https://developer.blender.org/rB9b2f2120163286bf08fa5ed341fa01eea8283dca

Fix T92939: Crash on drop when a curve is the active object

The active object was being set as the edited object even though it was
not in edit mode.

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

M	source/blender/editors/space_view3d/view3d_cursor_snap.c

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

diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c
index a4d7c60d906..bb387adb82e 100644
--- a/source/blender/editors/space_view3d/view3d_cursor_snap.c
+++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c
@@ -692,7 +692,7 @@ static void v3d_cursor_snap_update(V3DSnapCursorState *state,
       const int orient_index = BKE_scene_orientation_get_index(scene, SCE_ORIENT_DEFAULT);
       const int pivot_point = scene->toolsettings->transform_pivot_point;
       ED_transform_calc_orientation_from_type_ex(
-          scene, view_layer, v3d, region->regiondata, ob, ob, orient_index, pivot_point, omat);
+          scene, view_layer, v3d, rv3d, ob, NULL, orient_index, pivot_point, omat);
 
       if (state->use_plane_axis_auto) {
         mat3_align_axis_to_v3(omat, state->plane_axis, rv3d->viewinv[2]);



More information about the Bf-blender-cvs mailing list