Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-05 17:29:19 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-05 17:30:07 +0300
commit365ba6f5a130c6ce2b2e3eed7ae2c07d5ac1adc9 (patch)
treeedaca9e804c6e07fc035c521d16415daabfa8db3
parent806d4fbc5e4070209b9aa6942dc345aa1d61f20c (diff)
Fix T65437: sculpt dyntopo undo not showing correct mesh
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 3 insertions, 0 deletions
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)