diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 09:29:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 10:02:47 +0300 |
commit | fa4f9292e16ce6a9253164ea731870c6d0161848 (patch) | |
tree | 988f3d289f45b2f4454a9632f2df563601800417 /source/blender/editors/mesh | |
parent | d718d6b4493429a1e688e874fd76963f98e3d034 (diff) |
Transform: avoid passing the context to extended orientation functions
This makes it possible to calculate orientation from functions
that don't have the context.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 8e38d41f971..2fcf8fa6f8f 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -4871,8 +4871,15 @@ static int edbm_select_axis_exec(bContext *C, wmOperator *op) float axis_mat[3][3]; /* 3D view variables may be NULL, (no need to check in poll function). */ - ED_transform_calc_orientation_from_type_ex( - C, axis_mat, scene, CTX_wm_region_view3d(C), obedit, obedit, orientation, V3D_AROUND_ACTIVE); + ED_transform_calc_orientation_from_type_ex(scene, + view_layer, + CTX_wm_view3d(C), + CTX_wm_region_view3d(C), + obedit, + obedit, + orientation, + V3D_AROUND_ACTIVE, + axis_mat); const float *axis_vector = axis_mat[axis]; |