diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-11 03:08:02 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-11 03:08:02 +0300 |
commit | 09549c45383ef6f73e8c4c32220096b1385ed853 (patch) | |
tree | e9363e5727c3059f502cd6287b23f4eec4c0ec1c /source/blender/src/header_image.c | |
parent | e7285229b824f959f84efe6774c506034cf0f98e (diff) |
Orange: Added Alpha viewing option in Image window.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 0a4a8391b20..7bb7787d40a 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -1161,15 +1161,13 @@ void image_buttons(void) headerbuttons_packdummy = 1; } uiDefIconButBitI(block, TOG, 1, B_SIMAPACKIMA, ICON_PACKAGE, xco,0,XIC,YIC, &headerbuttons_packdummy, 0, 0, 0, 0, "Pack/Unpack this image"); - - xco+= XIC; - } - - xco+= 8; + xco+= XIC+8; - if (G.sima->image) { uiDefIconButBitS(block, TOG, SI_DRAWTOOL, B_SIMAGEPAINTTOOL, ICON_TPAINT_HLT, xco,0,XIC,YIC, &G.sima->flag, 0, 0, 0, 0, "Enables painting textures on the image with left mouse button"); xco+= XIC+8; + + uiDefIconButBitS(block, TOG, SI_USE_ALPHA, B_REDR, ICON_TRANSP_HLT, xco,0,XIC,YIC, &G.sima->flag, 0, 0, 0, 0, "Draws image with alpha"); + xco+= XIC+8; } /* draw LOCK */ |