Fix T57040 Mesh Disappearing after exiting edit mode in sculpt

This commit is contained in:
Clément Foucault 2018-10-04 14:57:23 +02:00
parent 9869e4ffe5
commit d2f913a37a
Notes: blender-bot 2023-02-14 05:15:14 +01:00
Referenced by issue #57040, Mesh Disappearing after exiting edit mode in sculpt
1 changed files with 3 additions and 1 deletions

View File

@ -540,7 +540,9 @@ static void sculpt_draw_cb(
void *user_data)
{
Object *ob = user_data;
PBVH *pbvh = ob->sculpt->pbvh;
/* XXX should be ensured before but sometime it's not... go figure (see T57040). */
PBVH *pbvh = BKE_sculpt_object_pbvh_ensure(DST.draw_ctx.depsgraph, ob);
const DRWContextState *drwctx = DRW_context_state_get();
int fast_mode = 0;