diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-11-27 19:21:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-11-27 19:21:25 +0300 |
commit | 0e0cafcada38937449e6160aba923ecafbc0e507 (patch) | |
tree | c10e1c21fdf6321110c0630c635fb578e7945a91 /source/blender/src/header_image.c | |
parent | dfd22eb94340165e049d2ecb31d96e20de94938d (diff) |
"UV Test Grid" option in Image Window > Image menu > New, to generate
a colored grid instead of a blank image, for quickly spotting distortion
in UV maps.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 8a4603ec532..e0571e94e45 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -731,6 +731,7 @@ static void do_image_imagemenu(void *arg, int event) case 7: /* New Image */ { static int width= 256, height= 256; + static short uvtestgrid=0; char name[256]; strcpy(name, "Image"); @@ -738,10 +739,11 @@ static void do_image_imagemenu(void *arg, int event) add_numbut(0, TEX, "Name:", 0, 255, name, NULL); add_numbut(1, NUM|INT, "Width:", 1, 5000, &width, NULL); add_numbut(2, NUM|INT, "Height:", 1, 5000, &height, NULL); - if (!do_clever_numbuts("New Image", 3, REDRAW)) + add_numbut(3, TOG|SHO, "UV Test Grid", 0, 0, &uvtestgrid, NULL); + if (!do_clever_numbuts("New Image", 4, REDRAW)) return; - G.sima->image= new_image(width, height, name); + G.sima->image= new_image(width, height, name, uvtestgrid); image_changed(G.sima, 0); allqueue(REDRAWIMAGE, 0); |