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
This commit is contained in:
parent
a45b408422
commit
8a9f6a2e0a
Notes:
blender-bot
2023-02-13 14:29:04 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #101137, Regression: Crash on connecting UV sphere node to transform node
|
@ -280,10 +280,10 @@ void BKE_mesh_tag_coords_changed_uniformly(Mesh *mesh)
|
|||
BKE_mesh_tag_coords_changed(mesh);
|
||||
/* The normals didn't change, since all verts 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue