diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-08 21:19:50 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-08 21:19:50 +0300 |
commit | c7ff99b1008f8f88deedb9029e1759e500a8068f (patch) | |
tree | 8e98844c2a0c4ca6ef3fc7da781dc19ecf2ea80a /source/blender | |
parent | ffea47530d868ba5c56ed688417f2260af439712 (diff) | |
parent | c77597cd0e15f9d7b6f963593b545cc94950eb8d (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index f3f47f71f60..2ec553c63c7 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -31,6 +31,7 @@ #include "BKE_key.h" #include "BKE_main.h" #include "BKE_mesh.h" +#include "BKE_mesh_runtime.h" #include "BKE_multires.h" #include "BKE_object.h" #include "BKE_paint.h" @@ -528,6 +529,8 @@ static void sculpt_undo_geometry_restore_data(SculptUndoNodeGeometry *geometry, &geometry->pdata, &mesh->pdata, CD_MASK_MESH.pmask, CD_DUPLICATE, geometry->totpoly); BKE_mesh_update_customdata_pointers(mesh, false); + + BKE_mesh_runtime_clear_cache(mesh); } static void sculpt_undo_geometry_free_data(SculptUndoNodeGeometry *geometry) |