Fix T77476: Transform Align mode using View orientation by default

This commit is contained in:
Germano Cavalcante
2020-06-19 12:56:45 -03:00
parent 334e5005f4
commit 27fb75fec2

View File

@@ -550,7 +550,8 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
orient_types[2] = orient_type_scene;
}
else {
if ((t->flag & T_MODAL) && (use_orient_axis || transform_mode_is_changeable(t->mode))) {
if ((t->flag & T_MODAL) && (use_orient_axis || transform_mode_is_changeable(t->mode)) &&
(t->mode != TFM_ALIGN)) {
orient_types[0] = V3D_ORIENT_VIEW;
}
else {