Fix #120152: Clear mesh runtime after validation #120159

Merged
Hans Goudey merged 1 commits from ChengduLittleA/blender:fix-120152 into main 2024-04-04 17:21:33 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_runtime.hh"
#include "DEG_depsgraph.hh"
@ -1125,6 +1126,7 @@ bool BKE_mesh_validate(Mesh *mesh, const bool do_verbose, const bool cddata_chec
&changed);
if (changed) {
BKE_mesh_runtime_clear_cache(mesh);
DEG_id_tag_update(&mesh->id, ID_RECALC_GEOMETRY_ALL_MODES);
return true;
}