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/include/ED_transform.h
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/include/ED_transform.h')
-rw-r--r--source/blender/editors/include/ED_transform.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h
index 69ac48d842f..bedd0e2fa35 100644
--- a/source/blender/editors/include/ED_transform.h
+++ b/source/blender/editors/include/ED_transform.h
@@ -109,7 +109,8 @@ bool BIF_createTransformOrientation(struct bContext *C,
const bool overwrite);
void BIF_selectTransformOrientation(struct bContext *C, struct TransformOrientation *target);
-void ED_getTransformOrientationMatrix(const struct bContext *C,
+void ED_getTransformOrientationMatrix(struct ViewLayer *view_layer,
+ const struct View3D *v3d,
struct Object *ob,
struct Object *obedit,
const short around,
@@ -145,15 +146,15 @@ void Transform_Properties(struct wmOperatorType *ot, int flags);
/* *** transform_orientations.c *** */
void ED_transform_calc_orientation_from_type(const struct bContext *C, float r_mat[3][3]);
-short ED_transform_calc_orientation_from_type_ex(const struct bContext *C,
- float r_mat[3][3],
- /* extra args */
- struct Scene *scene,
- struct RegionView3D *rv3d,
+short ED_transform_calc_orientation_from_type_ex(const struct Scene *scene,
+ struct ViewLayer *view_layer,
+ const struct View3D *v3d,
+ const struct RegionView3D *rv3d,
struct Object *ob,
struct Object *obedit,
const short orientation_index,
- const int pivot_point);
+ const int pivot_point,
+ float r_mat[3][3]);
/* transform gizmos */