[Bf-blender-cvs] [d49cbe19364] blender2.8: Fix own error in changes to transform logic

Campbell Barton noreply at git.blender.org
Fri Sep 7 02:55:34 CEST 2018


Commit: d49cbe19364c6bb03a2d531abc5abe95dfaa6c7d
Author: Campbell Barton
Date:   Fri Sep 7 10:59:43 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBd49cbe19364c6bb03a2d531abc5abe95dfaa6c7d

Fix own error in changes to transform logic

Regression in 3c8e4e4180

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

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

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

diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index b22cf3bd338..93d4b1d5409 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -1124,7 +1124,10 @@ void ED_getTransformOrientationMatrix(const bContext *C, float orientation_mat[3
 			break;
 		default:
 			BLI_assert(type == ORIENTATION_NONE);
-			unit_m3(orientation_mat);
 			break;
 	}
+
+	if (type == ORIENTATION_NONE) {
+		unit_m3(orientation_mat);
+	}
 }



More information about the Bf-blender-cvs mailing list