Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2016-10-13 02:31:44 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-13 03:36:58 +0300
commit84ed9d9829e56d6deb58b2fc5258225eeb49279b (patch)
tree76d0eac613fbc7148302ca3b2f59de404792945f /source/blender/editors
parent69b1b95356dfb5491730878de2ab5093eb90e20a (diff)
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index cf04c25047f..86e12b28d7f 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -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);
}
}