From 30c7183874b64da9b7058399979d06b2e0bec3c4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 1 May 2013 05:26:10 +0000 Subject: use 'normal' orientation rather then 'local' with individual origins to use the per-element axis-matrix. --- source/blender/editors/transform/transform.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/blender/editors/transform/transform.c') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index a07ddbdb092..989525fffb8 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -7540,4 +7540,17 @@ bool checkUseLocalCenter_GraphEdit(TransInfo *t) return ((t->around == V3D_LOCAL) && !ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE)); } +bool checkUseAxisMatrix(TransInfo *t) +{ + /* currenly only checks for editmode */ + if (t->flag & T_EDIT) { + if ((t->around == V3D_LOCAL) && (ELEM3(t->obedit->type, OB_MESH, OB_MBALL, OB_ARMATURE))) { + /* not all editmode supports axis-matrix */ + return true; + } + } + + return false; +} + #undef MAX_INFO_LEN -- cgit v1.2.3