[Bf-blender-cvs] [2f77175fecc] master: Fix sculpt mask not visible in EEVEE
Pablo Dobarro
noreply at git.blender.org
Thu Jun 20 17:02:53 CEST 2019
Commit: 2f77175fecc7fa444d351d47000209e248611ee6
Author: Pablo Dobarro
Date: Thu Jun 20 17:03:04 2019 +0200
Branches: master
https://developer.blender.org/rB2f77175fecc7fa444d351d47000209e248611ee6
Fix sculpt mask not visible in EEVEE
Differential Revision: https://developer.blender.org/D5092
===================================================================
M source/blender/draw/modes/sculpt_mode.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list