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:
authorJeroen Bakker <jbakker>2020-03-26 10:59:02 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2020-03-26 15:35:06 +0300
commit1ca1744c29e299f36a83506aec23d9bc99b6e48c (patch)
treea0df03d1bf3d1d5e689db35788d06ea3754f210e /source/blender/draw/engines/overlay/overlay_private.h
parent1b1c683f747932afbdf939a27fd0da97ac5210ab (diff)
Fix T70807: Weight Paint Overlay XRay
Weight paint overlay was not working when XRay was turned on. The Weight Paint overlay is rendered directly into the default framebuffer with a depth equal test. This test fails as the depth won't match. This patch will update the depth buffer in these cases. Reviewed By: fclem Differential Revision: https://developer.blender.org/D7176
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_private.h')
-rw-r--r--source/blender/draw/engines/overlay/overlay_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_private.h b/source/blender/draw/engines/overlay/overlay_private.h
index 47c52c885b2..7cc83c76857 100644
--- a/source/blender/draw/engines/overlay/overlay_private.h
+++ b/source/blender/draw/engines/overlay/overlay_private.h
@@ -93,6 +93,7 @@ typedef struct OVERLAY_PassList {
DRWPass *outlines_detect_ps;
DRWPass *outlines_resolve_ps;
DRWPass *paint_color_ps;
+ DRWPass *paint_depth_ps;
DRWPass *paint_overlay_ps;
DRWPass *particle_ps;
DRWPass *pointcloud_ps;
@@ -245,6 +246,7 @@ typedef struct OVERLAY_PrivateData {
DRWShadingGroup *motion_path_points_grp;
DRWShadingGroup *outlines_grp;
DRWShadingGroup *outlines_gpencil_grp;
+ DRWShadingGroup *paint_depth_grp;
DRWShadingGroup *paint_surf_grp;
DRWShadingGroup *paint_wire_grp;
DRWShadingGroup *paint_wire_selected_grp;
@@ -318,6 +320,7 @@ typedef struct OVERLAY_PrivateData {
} armature;
struct {
bool in_front;
+ bool alpha_blending;
} painting;
struct {
DRWCallBuffer *handle[2];