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
path: root/source
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2019-06-20 18:03:04 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-06-20 18:03:04 +0300
commit2f77175fecc7fa444d351d47000209e248611ee6 (patch)
treebc1fb2554d3403c77819314ab619ce4a05475d7a /source
parentce57185ffb4bc3841d65e2902ef2388dc3d18cb6 (diff)
Fix sculpt mask not visible in EEVEE
Differential Revision: https://developer.blender.org/D5092
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/modes/sculpt_mode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/modes/sculpt_mode.c b/source/blender/draw/modes/sculpt_mode.c
index 42a2333f305..1b196cd8bb7 100644
--- a/source/blender/draw/modes/sculpt_mode.c
+++ b/source/blender/draw/modes/sculpt_mode.c
@@ -155,7 +155,8 @@ static void SCULPT_cache_populate(void *vedata, Object *ob)
if (ob->sculpt) {
const DRWContextState *draw_ctx = DRW_context_state_get();
- if ((ob == draw_ctx->obact) && BKE_sculptsession_use_pbvh_draw(ob, draw_ctx->v3d)) {
+ if ((ob == draw_ctx->obact) &&
+ (BKE_sculptsession_use_pbvh_draw(ob, draw_ctx->v3d) || !ob->sculpt->modifiers_active)) {
PBVH *pbvh = ob->sculpt->pbvh;
if (pbvh && pbvh_has_mask(pbvh)) {
DRW_shgroup_call_sculpt(stl->g_data->mask_overlay_grp, ob, false, true, false);