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/transform_orientations.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/transform_orientations.c')
-rw-r--r-- | source/blender/src/transform_orientations.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/transform_orientations.c b/source/blender/src/transform_orientations.c index 1502ea70582..0b24a5cb1a4 100644 --- a/source/blender/src/transform_orientations.c +++ b/source/blender/src/transform_orientations.c @@ -313,8 +313,8 @@ void BIF_selectTransformOrientationFromIndex(int index) { G.vd->twmode = V3D_MANIP_CUSTOM + index; } -char * BIF_menustringTransformOrientation() { - char menu[] = "Orientation%t|Global%x0|Local%x1|Normal%x2|View%x3"; +char * BIF_menustringTransformOrientation(char *title) { + char menu[] = "%t|Global%x0|Local%x1|Normal%x2|View%x3"; ListBase *transform_spaces = &G.scene->transform_spaces; TransformOrientation *ts; int i = V3D_MANIP_CUSTOM; @@ -324,7 +324,8 @@ char * BIF_menustringTransformOrientation() { str_menu = MEM_callocN(strlen(menu) + 40 * BIF_countTransformOrientation(), "UserTransSpace from matrix"); p = str_menu; - p += sprintf(str_menu, "%s", menu); + p += sprintf(str_menu, "%s", title); + p += sprintf(p, "%s", menu); for (ts = transform_spaces->first; ts; ts = ts->next) { p += sprintf(p, "|%s%%x%d", ts->name, i++); |