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:
authorMartin Poirier <theeth@yahoo.com>2008-03-10 03:27:17 +0300
committerMartin Poirier <theeth@yahoo.com>2008-03-10 03:27:17 +0300
commitcbfbe53ebe39ece9a0c0bf05e87d3f7241ebe006 (patch)
tree73805c5f627a0d58ef89f1ab4230c9c479b09fac /source/blender/src/space.c
parent1a4f7a861ef6008b10a9e5ef65d4f4a34f5ca548 (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/src/space.c')
-rw-r--r--source/blender/src/space.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 47a37a21ed9..89775f976ff 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -1743,7 +1743,15 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
break;
case AKEY:
- if(G.qual & LR_CTRLKEY) apply_object(); /* also with shift! */
+ if (G.obedit == 0 && G.qual == (LR_CTRLKEY|LR_ALTKEY)) {
+ if(okee("Align to Transform Orientation")) {
+ initTransform(TFM_ALIGN, CTX_NO_PET|CTX_AUTOCONFIRM);
+ Transform();
+ }
+ }
+ else if(G.qual & LR_CTRLKEY) { /* also with shift! */
+ apply_object();
+ }
else if((G.qual==LR_SHIFTKEY)) {
toolbox_n_add();
}