diff options
author | Daniel Dunbar <daniel@zuster.org> | 2004-04-03 20:26:45 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2004-04-03 20:26:45 +0400 |
commit | 900f997208f3f6c4c8cfb96698f01330ba5dd22b (patch) | |
tree | bf74181d72df9f6ba471810f55b68e087a59eda4 /source/blender/src/buttons_shading.c | |
parent | 4a2efa7acf9cc8bc996ab5980d297910c5083ae3 (diff) |
- moved dm_menu var to declaration section
- no need for it to be static
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r-- | source/blender/src/buttons_shading.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index f511df218dc..92fd7367209 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -875,6 +875,7 @@ static void texture_panel_distnoise(Tex *tex) static void texture_panel_voronoi(Tex *tex) { + char dm_menu[256]; uiBlock *block; block= uiNewBlock(&curarea->uiblocks, "texture_panel_voronoi", UI_EMBOSS, UI_HELV, curarea->win); if(uiNewPanel(curarea, block, "Voronoi", "Texture", 640, 0, 318, 204)==0) return; @@ -889,7 +890,6 @@ static void texture_panel_voronoi(Tex *tex) uiBlockEndAlign(block); /* distance metric */ - static char dm_menu[256]; sprintf(dm_menu, "Distance Metric %%t|Actual Distance %%x%d|Distance Squared %%x%d|Manhattan %%x%d|Chebychev %%x%d|Minkovsky 1/2 %%x%d|Minkovsky 4 %%x%d|Minkovsky %%x%d", TEX_DISTANCE, TEX_DISTANCE_SQUARED, TEX_MANHATTAN, TEX_CHEBYCHEV, TEX_MINKOVSKY_HALF, TEX_MINKOVSKY_FOUR, TEX_MINKOVSKY); uiDefBut(block, LABEL, 0, "Distance Metric", 10, 160, 200, 19, 0, 0, 0, 0, 0, ""); uiDefButS(block, MENU, B_TEXPRV, dm_menu, 10, 140, 200, 19, &tex->vn_distm, 0,0,0,0, "Sets the distance metric to be used"); |