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
Notes: blender-bot 2023-02-14 09:24:53 +01:00
Referenced by issue #77476, Align mode not working properly or at least not as used to work
1 changed files with 2 additions and 1 deletions

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 {