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_constraints.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_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index b24ef4e0ba2..22d616572c1 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -701,6 +701,10 @@ void setUserConstraint(TransInfo *t, short orientation, int mode, const char fte
BLI_snprintf(text, sizeof(text), ftext, IFACE_("gimbal"));
setConstraint(t, t->spacemtx, mode, text);
break;
+ case V3D_MANIP_CUSTOM_MATRIX:
+ BLI_snprintf(text, sizeof(text), ftext, IFACE_("custom matrix"));
+ setConstraint(t, t->spacemtx, mode, text);
+ break;
case V3D_MANIP_CUSTOM:
{
char orientation_str[128];