diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-03-16 19:00:00 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-03-16 19:00:00 +0300 |
commit | 6a2e538d98a3d28929160ebd7a2247e242e623c3 (patch) | |
tree | 7bcf96ae2f6dfd87a5c8aa5357e65745780e7e5b /source/blender/src/edit.c | |
parent | 26daad49a3fcb8fc513ff8c6a0ab491fb775a586 (diff) |
== Align ==
Use pupmenu menu to select align orientation. Faster workflow than always having to change the current transform orientation beforehand.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index ecd546a6780..9190b3263f0 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -1856,6 +1856,22 @@ void snapmenu() } } +void alignmenu() +{ + short val; + char *str_menu = BIF_menustringTransformOrientation("Align"); + val= pupmenu(str_menu); + MEM_freeN(str_menu); + + if (val >= 0) + { + short old_val = G.vd->twmode; + G.vd->twmode = val; + initTransform(TFM_ALIGN, CTX_NO_PET|CTX_AUTOCONFIRM); + Transform(); + G.vd->twmode = old_val; + } +} #define MERGELIMIT 0.001 void mergemenu(void) |