diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 16:55:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 17:14:10 +0300 |
commit | 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 (patch) | |
tree | 0214b7c5146300d41b7bcbe99f87c92599608e7f /source/blender/editors/transform/transform_mode.h | |
parent | 8f1997975dc60bc1c18992458603ecd58dfded6d (diff) |
Cleanup: move public doc-strings into headers for 'editors'
Ref T92709
Diffstat (limited to 'source/blender/editors/transform/transform_mode.h')
-rw-r--r-- | source/blender/editors/transform/transform_mode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_mode.h b/source/blender/editors/transform/transform_mode.h index c561d1c8a4f..ec3d5b8d0fe 100644 --- a/source/blender/editors/transform/transform_mode.h +++ b/source/blender/editors/transform/transform_mode.h @@ -42,12 +42,24 @@ typedef struct TransDataGenericSlideVert { /* transform_mode.c */ int transform_mode_really_used(struct bContext *C, int mode); bool transdata_check_local_center(const TransInfo *t, short around); +/** + * Informs if the mode can be switched during modal. + */ bool transform_mode_is_changeable(const int mode); void protectedTransBits(short protectflag, float vec[3]); void protectedSizeBits(short protectflag, float size[3]); void constraintTransLim(const TransInfo *t, TransData *td); void constraintSizeLim(const TransInfo *t, TransData *td); +/** + * Used by Transform Rotation and Transform Normal Rotation. + */ void headerRotation(TransInfo *t, char *str, int str_size, float final); +/** + * Applies values of rotation to `td->loc` and `td->ext->quat` + * based on a rotation matrix (mat) and a pivot (center). + * + * Protected axis and other transform settings are taken into account. + */ void ElementRotation_ex(const TransInfo *t, const TransDataContainer *tc, TransData *td, @@ -64,6 +76,9 @@ void ElementResize(const TransInfo *t, TransData *td, const float mat[3][3]); void transform_mode_init(TransInfo *t, struct wmOperator *op, const int mode); +/** + * When in modal and not set, initializes a default orientation for the mode. + */ void transform_mode_default_modal_orientation_set(TransInfo *t, int type); /* transform_mode_align.c */ |