Fix T57040 Mesh Disappearing after exiting edit mode in sculpt
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue