diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-19 01:59:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-19 01:59:54 +0400 |
commit | 7ca3a1e135f3eb289aab8b1f54278f4864c53e4d (patch) | |
tree | 94eff6792b3c665bcf518e67376ab5b95d45cb60 /source/blender/src/buttons_shading.c | |
parent | 55620ca5d178c3d0816295a172f59caf42725ee8 (diff) |
Blenderstorm: idea #164: Hide useless World Shading buttons
Simple button change
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r-- | source/blender/src/buttons_shading.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index db531c7e6e3..aeb14d7c12b 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -2336,9 +2336,11 @@ static void world_panel_preview(World *wrld) uiDefBut(block, LABEL, 0, " ", 20,20,10,10, 0, 0, 0, 0, 0, ""); uiBlockBeginAlign(block); - uiDefButBitS(block, TOG, WO_SKYREAL, B_WORLDPRV,"Real", 200,175,80,25, &wrld->skytype, 0, 0, 0, 0, "Renders background with a real horizon"); - uiDefButBitS(block, TOG, WO_SKYBLEND, B_WORLDPRV,"Blend",200,150,80,25, &wrld->skytype, 0, 0, 0, 0, "Renders background with natural progression from horizon to zenith"); - uiDefButBitS(block, TOG,WO_SKYPAPER, B_WORLDPRV,"Paper",200,125,80,25, &wrld->skytype, 0, 0, 0, 0, "Flattens blend or texture coordinates"); + uiDefButBitS(block, TOG, WO_SKYBLEND, B_WORLDPRV,"Blend", 220,175,100,25, &wrld->skytype, 0, 0, 0, 0, "Renders background with natural progression from horizon to zenith"); + if (wrld->skytype & WO_SKYBLEND) { + uiDefButBitS(block, TOG, WO_SKYREAL, B_WORLDPRV,"Real", 220,150,50,25, &wrld->skytype, 0, 0, 0, 0, "Renders background with a real horizon"); + uiDefButBitS(block, TOG,WO_SKYPAPER, B_WORLDPRV,"Paper",270,150,50,25, &wrld->skytype, 0, 0, 0, 0, "Flattens blend or texture coordinates"); + } uiBlockEndAlign(block); } |