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 <jeroen@blender.org>2020-03-23 12:17:36 +0300
committerJeroen Bakker <jeroen@blender.org>2020-03-23 16:03:39 +0300
commit0b116a84c9380166337722f5d5b3e255e19951b8 (patch)
treef4a84f34d625a20d27838d6308a1b103caafe597 /source/blender/draw/engines/overlay/overlay_private.h
parent6a5bd812b569d5fe1f09bd5610ce9d0c119f1a21 (diff)
Fix T74923: Weight Painting Overlay Invisible for In Front Objects
For In Front Objects we need to use the in front depth buffer. This patch will use the in front depth buffer and also makes sure that it is filled with the center pixel depth. Reviewed By: fclem Differential Revision: https://developer.blender.org/D7216
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_private.h')
-rw-r--r--source/blender/draw/engines/overlay/overlay_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_private.h b/source/blender/draw/engines/overlay/overlay_private.h
index de35d4f760e..47c52c885b2 100644
--- a/source/blender/draw/engines/overlay/overlay_private.h
+++ b/source/blender/draw/engines/overlay/overlay_private.h
@@ -317,6 +317,9 @@ typedef struct OVERLAY_PrivateData {
bool do_pose_fade_geom;
} armature;
struct {
+ bool in_front;
+ } painting;
+ struct {
DRWCallBuffer *handle[2];
} mball;
} OVERLAY_PrivateData; /* Transient data */
@@ -524,6 +527,7 @@ void OVERLAY_outline_cache_populate(OVERLAY_Data *vedata,
bool init_dupli);
void OVERLAY_outline_draw(OVERLAY_Data *vedata);
+void OVERLAY_paint_init(OVERLAY_Data *vedata);
void OVERLAY_paint_cache_init(OVERLAY_Data *vedata);
void OVERLAY_paint_texture_cache_populate(OVERLAY_Data *vedata, Object *ob);
void OVERLAY_paint_vertex_cache_populate(OVERLAY_Data *vedata, Object *ob);