diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-25 15:24:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-25 15:30:27 +0300 |
commit | 30762a0b391c359731aad4ab3fa4c7b6830df4c4 (patch) | |
tree | 0ec413d899e4e38469f7937f22d67fd3b81022b8 /source/blender/draw/engines/workbench | |
parent | 8e8fb1520c7345adf7cdd0a839aa76578c4f70e9 (diff) |
DRW: disable clipping background drawing w/ xray mode
This interfered with drawing the mesh.
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_forward.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c index 80c35f3cfcd..43230c723d3 100644 --- a/source/blender/draw/engines/workbench/workbench_forward.c +++ b/source/blender/draw/engines/workbench/workbench_forward.c @@ -369,7 +369,8 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata) DRW_shgroup_call_add(grp, DRW_cache_fullscreen_quad_get(), NULL); } - if (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb) { + /* TODO(campbell): displays but masks geometry. */ + if (0 && (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb)) { psl->background_pass = DRW_pass_create( "Background", DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_EQUAL); GPUShader *shader = GPU_shader_get_builtin_shader(GPU_SHADER_3D_UNIFORM_COLOR_BACKGROUND); |