From 365ba6f5a130c6ce2b2e3eed7ae2c07d5ac1adc9 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 5 Jun 2019 16:29:19 +0200 Subject: Fix T65437: sculpt dyntopo undo not showing correct mesh --- source/blender/editors/sculpt_paint/sculpt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index c0af72a69cb..0e18e5eb343 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5585,6 +5585,9 @@ void sculpt_pbvh_clear(Object *ob) } ss->pbvh = NULL; BKE_object_free_derived_caches(ob); + + /* Tag to rebuild PBVH in depsgraph. */ + DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); } void sculpt_dyntopo_node_layers_add(SculptSession *ss) -- cgit v1.2.3