Fix for bug #9652: "draw zbuffer values" in the image editor did
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Apr 2008 13:33:52 +0000 (13:33 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Apr 2008 13:33:52 +0000 (13:33 +0000)
not work correct.

source/blender/src/drawimage.c
source/blender/src/header_image.c

index 89e34b6d73e6e256a4864501458cde0a86a1b817..ac2b92d08159ce5d8c0734c9a14c47be4ab7921b 100644 (file)
@@ -2238,7 +2238,7 @@ void drawimagespace(ScrArea *sa, void *spacedata)
                                                        else if(ibuf->rect_float && ibuf->channels==4)
                                                                sima_draw_alpha_pixelsf(x1_rep, y1_rep, ibuf->x, ibuf->y, ibuf->rect_float);
                                                }
-                                               else if(sima->flag & SI_SHOW_ZBUF && ((ibuf->zbuf || ibuf->zbuf_float || (ibuf->channels==1)) == 0)) {
+                                               else if(sima->flag & SI_SHOW_ZBUF && (ibuf->zbuf || ibuf->zbuf_float || (ibuf->channels==1))) {
                                                        if(ibuf->zbuf)
                                                                sima_draw_zbuf_pixels(x1_rep, y1_rep, ibuf->x, ibuf->y, ibuf->zbuf);
                                                        else if(ibuf->zbuf_float)
index d4e5dd70777c0534afb0a2cc1a0648d3027c1ece..bd170d646ebff36450b8e8ea8265cb006fc7fa8b 100644 (file)
@@ -1286,7 +1286,7 @@ void image_buttons(void)
                }
                if(ibuf) {
                        if(ibuf->zbuf || ibuf->zbuf_float || (ibuf->channels==1)) {
-                               uiDefIconButBitI(block, TOG, SI_SHOW_ZBUF, B_SIMA_SHOW_ZBUF, ICON_SOLID, xco,0,XIC,YIC, &G.sima->flag, 0, 0, 0, 0, "Draws zbuffer values");
+                               uiDefIconButBitI(block, TOG, SI_SHOW_ZBUF, B_SIMA_SHOW_ZBUF, ICON_SOLID, xco,0,XIC,YIC, &G.sima->flag, 0, 0, 0, 0, "Draws zbuffer values (mapped from camera clip start to end)");
                                xco+= XIC;
                        }
                }