Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-31 09:29:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-31 10:02:47 +0300
commitfa4f9292e16ce6a9253164ea731870c6d0161848 (patch)
tree988f3d289f45b2f4454a9632f2df563601800417 /source/blender/editors/transform/transform_gizmo_3d.c
parentd718d6b4493429a1e688e874fd76963f98e3d034 (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/transform/transform_gizmo_3d.c')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 279dca9731d..8dc4f107837 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -674,7 +674,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
if (ob) {
float mat[3][3];
ED_transform_calc_orientation_from_type_ex(
- C, mat, scene, rv3d, ob, obedit, orient_index, pivot_point);
+ scene, view_layer, v3d, rv3d, ob, obedit, orient_index, pivot_point, mat);
copy_m4_m3(rv3d->twmat, mat);
}