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>2018-08-16 09:14:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-16 09:15:16 +0300
commit3c8e4e4180b680c6eefff9b3cab7bd091b19074f (patch)
tree94da37ec7812374f96e7481ed2a3fc8e723b9ba1 /source/blender/editors/include/ED_transform.h
parent70bcb0c01c185dde6b73358561eb175bc5c3650d (diff)
Cursor Tool: add transform orientation type
Support using the current transform orientation when placing the cursor. See: T55036
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r--source/blender/editors/include/ED_transform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h
index a8e8b347da2..223163264ca 100644
--- a/source/blender/editors/include/ED_transform.h
+++ b/source/blender/editors/include/ED_transform.h
@@ -198,6 +198,14 @@ bool snapNodesTransform(
/* return args */
float r_loc[2], float *r_dist_px, char *r_node_border);
+void ED_transform_calc_orientation_from_type(
+ const struct bContext *C, float r_mat[3][3]);
+ void ED_transform_calc_orientation_from_type_ex(
+ const struct bContext *C, float r_mat[3][3],
+ /* extra args */
+ struct Scene *scene, struct View3D *v3d, struct RegionView3D *rv3d, struct Object *ob, struct Object *obedit,
+ const short orientation_type, const int pivot_point);
+
struct TransformBounds {
float center[3]; /* Center for transform widget. */
float min[3], max[3]; /* Boundbox of selection for transform widget. */