[Bf-blender-cvs] [774471dd450] blender2.8: Fix custom matrix orientation being written to scene

Campbell Barton noreply at git.blender.org
Wed Nov 21 02:58:25 CET 2018


Commit: 774471dd450f8eb203928c62bdd1730494647078
Author: Campbell Barton
Date:   Wed Nov 21 12:47:25 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB774471dd450f8eb203928c62bdd1730494647078

Fix custom matrix orientation being written to scene

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

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

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 9bd8417c46e..29ac5a92def 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -2121,7 +2121,8 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
 
 		if (t->spacetype == SPACE_VIEW3D) {
 			if ((prop = RNA_struct_find_property(op->ptr, "constraint_orientation")) &&
-			    !RNA_property_is_set(op->ptr, prop))
+			    !RNA_property_is_set(op->ptr, prop) &&
+			    (t->current_orientation != V3D_MANIP_CUSTOM_MATRIX))
 			{
 				t->scene->orientation_type = t->current_orientation;
 				BLI_assert(((t->scene->orientation_index_custom == -1) && (t->custom_orientation == NULL)) ||



More information about the Bf-blender-cvs mailing list