diff options
author | Wannes Malfait <Wannes> | 2022-09-19 06:58:51 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-09-21 13:54:17 +0300 |
commit | 9b591a104b35c345bdb05874f4b9b6cc4aba1284 (patch) | |
tree | 55389b546f0edd8a8b6639f6427da6a1a3d7ba1f /source/blender | |
parent | 55177b40f3f4eb459f9b7091a4d1a232a6529451 (diff) |
Fix T101137: Crash with Transform Node
In `BKE_mesh_tag_coords_changed_uniformly` the checks for dirty vertex
and dirty poly normals were swapped around, causing an assert to be
triggered.
Differential Revision: https://developer.blender.org/D16002
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_runtime.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_runtime.cc b/source/blender/blenkernel/intern/mesh_runtime.cc index 4521c519f45..77f4cec6ed2 100644 --- a/source/blender/blenkernel/intern/mesh_runtime.cc +++ b/source/blender/blenkernel/intern/mesh_runtime.cc @@ -274,10 +274,10 @@ void BKE_mesh_tag_coords_changed_uniformly(Mesh *mesh) BKE_mesh_tag_coords_changed(mesh); /* The normals didn't change, since all vertices moved by the same amount. */ if (!vert_normals_were_dirty) { - BKE_mesh_poly_normals_clear_dirty(mesh); + BKE_mesh_vertex_normals_clear_dirty(mesh); } if (!poly_normals_were_dirty) { - BKE_mesh_vertex_normals_clear_dirty(mesh); + BKE_mesh_poly_normals_clear_dirty(mesh); } } |