[Bf-blender-cvs] [84ed9d9] blender2.8: Draw depth even when in wire mode (for OB_RENDER)

Dalai Felinto noreply at git.blender.org
Thu Oct 13 05:02:37 CEST 2016


Commit: 84ed9d9829e56d6deb58b2fc5258225eeb49279b
Author: Dalai Felinto
Date:   Wed Oct 12 23:31:44 2016 +0000
Branches: blender2.8
https://developer.blender.org/rB84ed9d9829e56d6deb58b2fc5258225eeb49279b

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.

===================================================================

M	source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index cf04c25..86e12b2 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);
 	}
 }




More information about the Bf-blender-cvs mailing list