diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2008-03-21 20:00:40 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2008-03-21 20:00:40 +0300 |
commit | 32b5138e6459df5298ca50865dafab4d22a4aeed (patch) | |
tree | 8ba947a61d91fe051e9c3a864f5e0ca61968bca1 /source/blender/src/transform_orientations.c | |
parent | 473ba6ac718bc32b4fc6c6aee4d03673cf62936c (diff) | |
parent | df1ba7da75f9b82f81693d5e0adfec29b2f4a424 (diff) |
update to trunk r14199ndof
Diffstat (limited to 'source/blender/src/transform_orientations.c')
-rw-r--r-- | source/blender/src/transform_orientations.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/transform_orientations.c b/source/blender/src/transform_orientations.c index 1502ea70582..849644e3791 100644 --- a/source/blender/src/transform_orientations.c +++ b/source/blender/src/transform_orientations.c @@ -313,18 +313,19 @@ 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; char *str_menu, *p; - str_menu = MEM_callocN(strlen(menu) + 40 * BIF_countTransformOrientation(), "UserTransSpace from matrix"); + str_menu = MEM_callocN(strlen(menu) + strlen(title) + 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++); |