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.
This commit is contained in:
parent
07a4338b3a
commit
9b2f212016
Notes:
blender-bot
2023-02-14 05:12:59 +01:00
Referenced by issue #92939, Blender crash when drop hidden object to the viewport
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue