Cleanup: Remove redundant mesh normals dirty tag function
Since normals are derived data, it's always a change to something else that will cause them to change, like the winding order of a face or vertex positions. So it's clearer to use tags for those things directly. It's correct to remove the tag in one place since dirty is the default state of a new mesh.
This commit is contained in:
@@ -246,7 +246,8 @@ void BKE_mesh_tag_edges_split(struct Mesh *mesh)
|
||||
|
||||
void BKE_mesh_tag_positions_changed(Mesh *mesh)
|
||||
{
|
||||
BKE_mesh_normals_tag_dirty(mesh);
|
||||
mesh->runtime->vert_normals_dirty = true;
|
||||
mesh->runtime->poly_normals_dirty = true;
|
||||
free_bvh_cache(*mesh->runtime);
|
||||
mesh->runtime->looptris_cache.tag_dirty();
|
||||
mesh->runtime->bounds_cache.tag_dirty();
|
||||
|
||||
Reference in New Issue
Block a user