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:
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index bfc64d1d37a..a361d1419d4 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -3241,16 +3241,11 @@ static void axis_set_view(bContext *C, View3D *v3d, ARegion *ar,
align_active = false;
}
else {
- const float z_flip_quat[4] = {0.0f, 0.0f, 0.0f, 1.0f};
float obact_quat[4];
float twmat[3][3];
- /* flip the input, the end result being that an object
- * with no rotation behaves as if 'align_active' is off */
- mul_qt_qtqt(new_quat, new_quat, z_flip_quat);
-
/* same as transform manipulator when normal is set */
- ED_getTransformOrientationMatrix(C, twmat, false);
+ ED_getTransformOrientationMatrix(C, twmat, true);
mat3_to_quat(obact_quat, twmat);
invert_qt(obact_quat);