From 6ebad22091c06f1e11e5efca7f19b1800e91fe09 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 26 Feb 2019 20:22:54 +1100 Subject: 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 --- source/blender/editors/transform/transform.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/transform/transform.h') 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; -- cgit v1.2.3