diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 17:42:14 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:39:41 +0300 |
commit | ea5f2f88b34ef92cfba9619439d8a786e5befcaa (patch) | |
tree | 9df0affefb8dce976d66634a56e98a87b70717fa /source/blender/editors/transform/transform.h | |
parent | dba0b84359e47b374647e10fa6ae72dd6a9f4528 (diff) |
Cleanup: Move transform_orientations functions to separate header
Improves the organization and identification of the API.
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index ed4a2945de6..17ef9a3034f 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -692,44 +692,6 @@ void getViewVector(const TransInfo *t, const float coord[3], float vec[3]); void transform_data_ext_rotate(TransData *td, float mat[3][3], bool use_drot); -/*********************** Transform Orientations ******************************/ -short transform_orientation_matrix_get(struct bContext *C, - TransInfo *t, - short orientation, - const float custom[3][3], - float r_spacemtx[3][3]); -const char *transform_orientations_spacename_get(TransInfo *t, const short orient_type); -void transform_orientations_current_set(struct TransInfo *t, const short orient_index); - -/* Those two fill in mat and return non-zero on success */ -bool createSpaceNormal(float mat[3][3], const float normal[3]); -bool createSpaceNormalTangent(float mat[3][3], const float normal[3], const float tangent[3]); - -struct TransformOrientation *addMatrixSpace(struct bContext *C, - float mat[3][3], - const char *name, - const bool overwrite); -void applyTransformOrientation(const struct TransformOrientation *ts, - float r_mat[3][3], - char r_name[64]); - -enum { - ORIENTATION_NONE = 0, - ORIENTATION_NORMAL = 1, - ORIENTATION_VERT = 2, - ORIENTATION_EDGE = 3, - ORIENTATION_FACE = 4, -}; -#define ORIENTATION_USE_PLANE(ty) ELEM(ty, ORIENTATION_NORMAL, ORIENTATION_EDGE, ORIENTATION_FACE) - -int getTransformOrientation_ex(const struct bContext *C, - struct Object *ob, - struct Object *obedit, - float normal[3], - float plane[3], - const short around); -int getTransformOrientation(const struct bContext *C, float normal[3], float plane[3]); - void freeCustomNormalArray(TransInfo *t, TransDataContainer *tc, TransCustomData *custom_data); /* TODO. transform_query.c */ |