Commit: d2f913a37a1b35504d9ce7a8bff2eec904aa9f3e Author: Clément Foucault Date: Thu Oct 4 14:57:23 2018 +0200 Branches: blender2.8 https://developer.blender.org/rBd2f913a37a1b35504d9ce7a8bff2eec904aa9f3e
Fix T57040 Mesh Disappearing after exiting edit mode in sculpt =================================================================== M source/blender/draw/intern/draw_manager_data.c =================================================================== diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index 248a17d0c68..371bd9dd189 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -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; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs