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>2013-05-01 09:26:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-01 09:26:10 +0400
commit30c7183874b64da9b7058399979d06b2e0bec3c4 (patch)
tree9b468858980ceb6319eea41f40ce88fafa51ed18 /source/blender/editors/transform/transform.c
parent12476d157a240aec48cee4ddb648701fb2ba188e (diff)
use 'normal' orientation rather then 'local' with individual origins to use the per-element axis-matrix.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c13
1 files changed, 13 insertions, 0 deletions
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