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-16 19:00:00 +0300
committerMartin Poirier <theeth@yahoo.com>2008-03-16 19:00:00 +0300
commit6a2e538d98a3d28929160ebd7a2247e242e623c3 (patch)
tree7bcf96ae2f6dfd87a5c8aa5357e65745780e7e5b /source/blender/src/edit.c
parent26daad49a3fcb8fc513ff8c6a0ab491fb775a586 (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.c16
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)