forked from bartvdbraak/blender
Fix for bug #9652: "draw zbuffer values" in the image editor did
not work correct.
This commit is contained in:
parent
514580d39d
commit
a0b2195a8d
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user