Fix T62152: Shear X and Y are swapped

This commit is contained in:
Campbell Barton
2019-09-03 20:32:15 +10:00
parent 85b1506c6e
commit a620501acb
2 changed files with 2 additions and 2 deletions

View File

@@ -3520,7 +3520,7 @@ static void initShear_mouseInputMode(TransInfo *t)
copy_v3_v3(dir, t->orient_matrix[t->orient_axis_ortho]);
}
else {
cross_v3_v3v3(dir, t->orient_matrix[t->orient_axis_ortho], t->orient_matrix[t->orient_axis]);
cross_v3_v3v3(dir, t->orient_matrix[t->orient_axis], t->orient_matrix[t->orient_axis_ortho]);
}
/* Without this, half the gizmo handles move in the opposite direction. */

View File

@@ -573,7 +573,7 @@ void Transform_Properties(struct wmOperatorType *ot, int flags)
if (flags & P_ORIENT_AXIS_ORTHO) {
prop = RNA_def_property(ot->srna, "orient_axis_ortho", PROP_ENUM, PROP_NONE);
RNA_def_property_ui_text(prop, "Axis Ortho", "");
RNA_def_property_enum_default(prop, 1);
RNA_def_property_enum_default(prop, 0);
RNA_def_property_enum_items(prop, rna_enum_axis_xyz_items);
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}