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-02-26 12:22:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-26 13:17:17 +0300
commit6ebad22091c06f1e11e5efca7f19b1800e91fe09 (patch)
treeaaf2c2f991c6c6322e96d01b773ef1e804c708fd /source/blender/editors/transform/transform.h
parent0a87bf67849be91d4b874862815c8ca9e93a4047 (diff)
Transform: fix rotate redo behavior
- Add XYZ option. - Orientation now works as expected. Now a redo for rotation works logically, setting the axis to Z & the orientation to view. Resolves T57205
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index b234dabdc0b..d6121948b90 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -628,10 +628,11 @@ typedef struct TransInfo {
/** Offset applied ontop of modal input. */
float values_modal_offset[4];
float auto_values[4];
- float axis[3];
- /** TransCon can change 'axis', store the original value here. */
- float axis_orig[3];
- float axis_ortho[3];
+
+ int orient_axis;
+ int orient_axis_ortho;
+ float orient_matrix[3][3];
+ bool orient_matrix_is_set;
/** remove elements if operator is canceled. */
bool remove_on_cancel;