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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-06-21 08:39:28 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-06-21 08:39:37 +0300
commit697363545f37596a53d47a90cfa56d365c75dea7 (patch)
tree577903559c3c1c4b4db6af872dc101aca3e28d1e /source/blender/draw/intern/draw_subdivision.h
parente42c662723a81171276e349e7b1cb3c5bf465162 (diff)
GPU subdiv: fix hidden faces in paint mode when hidden in edit mode
Pass `use_hide` to the compute shaders so that we can override the hidden face flags, like CPU extraction is doing.
Diffstat (limited to 'source/blender/draw/intern/draw_subdivision.h')
-rw-r--r--source/blender/draw/intern/draw_subdivision.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_subdivision.h b/source/blender/draw/intern/draw_subdivision.h
index c56e2a272ad..ef580fc116a 100644
--- a/source/blender/draw/intern/draw_subdivision.h
+++ b/source/blender/draw/intern/draw_subdivision.h
@@ -180,6 +180,7 @@ typedef struct DRWSubdivCache {
/* Extra flags, passed to the UBO. */
bool is_edit_mode;
+ bool use_hide;
} DRWSubdivCache;
/* Only frees the data of the cache, caller is responsible to free the cache itself if necessary.