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-10-31 23:24:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-31 23:55:53 +0300
commiteb8ddaee4cd2cd93a6590e4ba73652628961df57 (patch)
treea065f5bd72859df0828f0ba6adf9737a28cbecb5 /source/blender/editors/transform/transform_orientations.c
parent798cd8a7230dba1a0aead06bb82857b881a42f95 (diff)
Transform: support for custom matrix property
Needed for situations when we can't use the orientation. With extrude the initial extrusion recalculates normals for edges and vertices which then don't give a useful axis.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 9df1fef1a3c..447842e9bf0 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -487,6 +487,10 @@ void initTransformOrientation(bContext *C, TransInfo *t)
ED_view3d_cursor3d_calc_mat3(t->scene, CTX_wm_view3d(C), t->spacemtx);
break;
}
+ case V3D_MANIP_CUSTOM_MATRIX:
+ /* Already set. */
+ BLI_strncpy(t->spacename, IFACE_("custom"), sizeof(t->spacename));
+ break;
case V3D_MANIP_CUSTOM:
BLI_strncpy(t->spacename, t->custom_orientation->name, sizeof(t->spacename));