[Bf-blender-cvs] [3bcad47357a] master: Fix T62068: rotation incorrectly re-uses axis

Campbell Barton noreply at git.blender.org
Fri Mar 1 03:06:57 CET 2019


Commit: 3bcad47357a5ba4dc7b95f2ce40b4a2d71546eee
Author: Campbell Barton
Date:   Fri Mar 1 13:05:24 2019 +1100
Branches: master
https://developer.blender.org/rB3bcad47357a5ba4dc7b95f2ce40b4a2d71546eee

Fix T62068: rotation incorrectly re-uses axis

Regression in recent transform changes.

===================================================================

M	source/blender/editors/transform/transform_ops.c

===================================================================

diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c
index 6a36f302405..a1bb970e844 100644
--- a/source/blender/editors/transform/transform_ops.c
+++ b/source/blender/editors/transform/transform_ops.c
@@ -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) {



More information about the Bf-blender-cvs mailing list