[Bf-blender-cvs] [365ba6f5a13] master: Fix T65437: sculpt dyntopo undo not showing correct mesh
Brecht Van Lommel
noreply at git.blender.org
Wed Jun 5 16:30:12 CEST 2019
Commit: 365ba6f5a130c6ce2b2e3eed7ae2c07d5ac1adc9
Author: Brecht Van Lommel
Date: Wed Jun 5 16:29:19 2019 +0200
Branches: master
https://developer.blender.org/rB365ba6f5a130c6ce2b2e3eed7ae2c07d5ac1adc9
Fix T65437: sculpt dyntopo undo not showing correct mesh
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list