Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-16 09:14:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-16 09:15:16 +0300
commit3c8e4e4180b680c6eefff9b3cab7bd091b19074f (patch)
tree94da37ec7812374f96e7481ed2a3fc8e723b9ba1 /source/blender/editors/transform/transform_orientations.c
parent70bcb0c01c185dde6b73358561eb175bc5c3650d (diff)
Cursor Tool: add transform orientation type
Support using the current transform orientation when placing the cursor. See: T55036
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 19df46455d7..b22cf3bd338 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -1122,9 +1122,9 @@ void ED_getTransformOrientationMatrix(const bContext *C, float orientation_mat[3
type = ORIENTATION_NONE;
}
break;
- }
-
- if (type == ORIENTATION_NONE) {
- unit_m3(orientation_mat);
+ default:
+ BLI_assert(type == ORIENTATION_NONE);
+ unit_m3(orientation_mat);
+ break;
}
}