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)) ||

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to