diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-06-21 08:39:28 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-06-21 08:39:37 +0300 |
commit | 697363545f37596a53d47a90cfa56d365c75dea7 (patch) | |
tree | 577903559c3c1c4b4db6af872dc101aca3e28d1e /source/blender/draw/intern/draw_subdivision.h | |
parent | e42c662723a81171276e349e7b1cb3c5bf465162 (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.h | 1 |
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. |