Fix T70564: sculpt mask display missing with shape keys or deforming modifiers
This commit is contained in:
parent
e00a00db52
commit
d7465c23c7
Notes:
blender-bot
2023-02-14 11:28:39 +01:00
Referenced by issue #70564, Sculpt Mask not visible (Show mask enabled)
|
@ -155,8 +155,9 @@ 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) ||
|
||||
!ob->sculpt->deform_modifiers_active)) {
|
||||
if ((ob == draw_ctx->obact) &&
|
||||
(BKE_sculptsession_use_pbvh_draw(ob, draw_ctx->v3d) ||
|
||||
ob->sculpt->deform_modifiers_active || ob->sculpt->shapekey_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