Fix sculpt mask not visible in EEVEE
Differential Revision: https://developer.blender.org/D5092
This commit is contained in:
parent
ce57185ffb
commit
2f77175fec
Notes:
blender-bot
2023-02-14 11:18:07 +01:00
Referenced by issue #67091, Sculpt mask not showing with deformation modifiers Referenced by issue #65968, ctest: script_load_addons fails Referenced by issue #65963, Tests: fix script_load_keymap hierarchy test Referenced by issue #65964, Cycles/Ctest : OSL Failing tests. Referenced by issue #65966, Blender doesn't quit. Referenced by issue #65967, ctest: script_alembic_import segfaults on all platforms.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue