Draw depth even when in wire mode (for OB_RENDER)

Note: this is not working at the moment, but the logic is sound.
Since we will still change the drawing code a lot I think the commit is valid.
This commit is contained in:
Dalai Felinto 2016-10-12 23:31:44 +00:00
parent 69b1b95356
commit 84ed9d9829
1 changed files with 3 additions and 1 deletions

View File

@ -976,8 +976,10 @@ static void draw_depth_buffer(const bContext *C, ARegion *ar)
*/
static void view3d_draw_prerender_buffers(const bContext *C, ARegion *ar, DrawData *draw_data)
{
View3D *v3d = CTX_wm_view3d(C);
/* TODO viewport */
if (draw_data->is_render && (!draw_data->clip_border)) {
if (draw_data->is_render && ((!draw_data->clip_border) || (v3d->drawtype <= OB_WIRE))) {
draw_depth_buffer(C, ar);
}
}