Fix T62068: rotation incorrectly re-uses axis

Regression in recent transform changes.
This commit is contained in:
Campbell Barton 2019-03-01 13:05:24 +11:00
parent 69665bc7f0
commit 3bcad47357
Notes: blender-bot 2023-02-14 06:32:27 +01:00
Referenced by issue #62068, View space rotation (or the gizmo for it) is broken
1 changed files with 2 additions and 0 deletions

View File

@ -547,12 +547,14 @@ void Transform_Properties(struct wmOperatorType *ot, int flags)
RNA_def_property_ui_text(prop, "Axis", "");
RNA_def_property_enum_default(prop, 2);
RNA_def_property_enum_items(prop, rna_enum_axis_xyz_items);
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
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_items(prop, rna_enum_axis_xyz_items);
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
if (flags & P_ORIENT_MATRIX) {