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-17 14:05:45 +0300
committerJeroen Bakker <jeroen@blender.org>2020-03-20 09:43:31 +0300
commit4fc45c7a2b75df1a0e07150c101b664e189550b7 (patch)
treee298c543ecb1ca090c86a3b0205c80f69501e3fd /source/blender/draw
parentcb560c01b6c61241acaa848cbdeb263af8b8cecd (diff)
Fix T74643: Outline Overlay Shows Hidden Faces
When in editmode faces can be hidden, but in object mode these faces are still visible. The flag if a face was hidden in edit mode is stored in object mode, but should not be used. The edge detection gpu batch did detect hidden faces and didn't add them to the draw batch. The edge detection gpu batch is used for workbench shadows, custom bone shapes and object outlines. This patch adds all faces to the edge detection batch. Reviewed By: fclem Differential Revision: https://developer.blender.org/D7157
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_cache_extract_mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c
index b86287a03e8..54e745102f0 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.c
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.c
@@ -1066,7 +1066,7 @@ static void extract_lines_adjacency_looptri_mesh(const MeshRenderData *mr,
void *data)
{
const MPoly *mpoly = &mr->mpoly[mlt->poly];
- if (!(mpoly->flag & ME_HIDE)) {
+ if (!(mr->use_hide && (mpoly->flag & ME_HIDE))) {
lines_adjacency_triangle(mr->mloop[mlt->tri[0]].v,
mr->mloop[mlt->tri[1]].v,
mr->mloop[mlt->tri[2]].v,