Mesh: Add an explicit "positions changed" function

We store various lazily calculated caches on meshes, some of which
depend on the vertex positions staying the same. The current API to
invalidate these caches is a bit confusing. With an explicit set of
functions modeled after the functions in `BKE_node_tree_update.h`,
it becomes clear which function to call. This may become more
important if more lazy caches are added in the future.

Differential Revision: https://developer.blender.org/D14760
This commit is contained in:
2022-06-23 12:00:25 -05:00
parent 3e5a4d1412
commit 54182e4925
13 changed files with 57 additions and 24 deletions

View File

@@ -146,7 +146,7 @@ static Mesh *get_quick_mesh(
mul_m4_v3(omat, mv->co);
}
BKE_mesh_normals_tag_dirty(result);
BKE_mesh_tag_coords_changed(result);
}
break;