diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-03-10 03:27:17 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-03-10 03:27:17 +0300 |
commit | cbfbe53ebe39ece9a0c0bf05e87d3f7241ebe006 (patch) | |
tree | 73805c5f627a0d58ef89f1ab4230c9c479b09fac /source/blender/include | |
parent | 1a4f7a861ef6008b10a9e5ef65d4f4a34f5ca548 (diff) |
== Align to Transform Orientation ==
New rotation alignement fonction
Rotates objects/Pose bones to match the selected transform orientation.
Can be used to align to view, active object (normal) and custom transform orientations.
Accessible in the Object -> Transform submenu and through the hotkey Ctrl-Alt-A (which was previously a fall through for Apply but only Ctrl-A and Ctrl-Shift-A did anything special).
Can be eventually made to work in edit mode (not too hard).
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BIF_transform.h | 1 | ||||
-rw-r--r-- | source/blender/include/transform.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/include/BIF_transform.h b/source/blender/include/BIF_transform.h index deebe7c27cb..e5be25ae729 100644 --- a/source/blender/include/BIF_transform.h +++ b/source/blender/include/BIF_transform.h @@ -62,6 +62,7 @@ #define TFM_BAKE_TIME 23 #define TFM_BEVEL 24 #define TFM_BWEIGHT 25 +#define TFM_ALIGN 26 /* TRANSFORM CONTEXTS */ #define CTX_NONE 0 diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h index 694cfece989..feaa2b4d762 100644 --- a/source/blender/include/transform.h +++ b/source/blender/include/transform.h @@ -373,6 +373,9 @@ int BakeTime(TransInfo *t, short mval[2]); void initMirror(TransInfo *t); int Mirror(TransInfo *t, short mval[2]); +void initAlign(TransInfo *t); +int Align(TransInfo *t, short mval[2]); + /*********************** transform_conversions.c ********** */ struct ListBase; void flushTransIpoData(TransInfo *t); |