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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user