From bca96a4f991f2b8b322afdfeb756ee213ec0bfab Mon Sep 17 00:00:00 2001 From: Joilnen Leite Date: Mon, 19 Jun 2006 17:03:02 +0000 Subject: [PATCH] moved defines for top of file . --- source/blender/src/editface.c | 53 ++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c index d7709794252..b2b35cac201 100644 --- a/source/blender/src/editface.c +++ b/source/blender/src/editface.c @@ -93,6 +93,33 @@ #include "BDR_unwrapper.h" +/* Pupmenu codes: */ +#define UV_CUBE_MAPPING 2 +#define UV_CYL_MAPPING 3 +#define UV_SPHERE_MAPPING 4 +#define UV_BOUNDS8_MAPPING 68 +#define UV_BOUNDS4_MAPPING 65 +#define UV_BOUNDS2_MAPPING 66 +#define UV_BOUNDS1_MAPPING 67 +#define UV_STD8_MAPPING 131 +#define UV_STD4_MAPPING 130 +#define UV_STD2_MAPPING 129 +#define UV_STD1_MAPPING 128 +#define UV_WINDOW_MAPPING 5 +#define UV_UNWRAP_MAPPING 6 +#define UV_CYL_EX 32 +#define UV_SPHERE_EX 34 + +/* Some macro tricks to make pupmenu construction look nicer :-) + Sorry, just did it for fun. */ + +#define _STR(x) " " #x +#define STRING(x) _STR(x) + +#define MENUSTRING(string, code) string " %x" STRING(code) +#define MENUTITLE(string) string " %t|" + + /* returns 0 if not found, otherwise 1 */ static int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect) { @@ -1342,32 +1369,6 @@ void face_borderselect() #endif } -/* Pupmenu codes: */ -#define UV_CUBE_MAPPING 2 -#define UV_CYL_MAPPING 3 -#define UV_SPHERE_MAPPING 4 -#define UV_BOUNDS8_MAPPING 68 -#define UV_BOUNDS4_MAPPING 65 -#define UV_BOUNDS2_MAPPING 66 -#define UV_BOUNDS1_MAPPING 67 -#define UV_STD8_MAPPING 131 -#define UV_STD4_MAPPING 130 -#define UV_STD2_MAPPING 129 -#define UV_STD1_MAPPING 128 -#define UV_WINDOW_MAPPING 5 -#define UV_UNWRAP_MAPPING 6 -#define UV_CYL_EX 32 -#define UV_SPHERE_EX 34 - -/* Some macro tricks to make pupmenu construction look nicer :-) - Sorry, just did it for fun. */ - -#define _STR(x) " " #x -#define STRING(x) _STR(x) - -#define MENUSTRING(string, code) string " %x" STRING(code) -#define MENUTITLE(string) string " %t|" - void uv_autocalc_tface() { short mode;