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>2019-03-01 02:12:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-01 02:56:46 +0300
commit805f8f8230f048e86d92f016588fb62af87857b5 (patch)
treee201c932b73d595ce01766828b07f36176303127 /source/blender/editors/transform/transform.h
parentc18289da939b2c07ddd61665f98ac8c0f993a99e (diff)
Comments: add comments for new transform struct members.
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h11
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. */