diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 02:12:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 02:56:46 +0300 |
commit | 805f8f8230f048e86d92f016588fb62af87857b5 (patch) | |
tree | e201c932b73d595ce01766828b07f36176303127 /source/blender/editors/transform | |
parent | c18289da939b2c07ddd61665f98ac8c0f993a99e (diff) |
Comments: add comments for new transform struct members.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index b9240c4ef3d..c8af018f7b9 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -632,9 +632,20 @@ typedef struct TransInfo { float values_modal_offset[4]; float auto_values[4]; + /* Axis members for modes that use an axis separate from the orientation (rotate & shear). */ + + /** Primary axis, rotate only uses this. */ int orient_axis; + /** Secondary axis, shear uses this. */ int orient_axis_ortho; + + /** Often this matrix has similar usage to #TransInfo.spacemtx however this + * is used to define extra axes to operate on, not necessarily a space. + * + * For example, by default rotation operates on the view (`orient_matrix[2]`), + * even when the current space isn't set to the view. */ float orient_matrix[3][3]; + /** Don't overwrite when set by operator redo defines the orientation axis. */ bool orient_matrix_is_set; /** remove elements if operator is canceled. */ |