Fix T62152: Shear X and Y are swapped
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user