[Bf-blender-cvs] [8a9f6a2e0a1] master: Fix T101137: Crash with Transform Node
Wannes Malfait
noreply at git.blender.org
Mon Sep 19 05:59:36 CEST 2022
Commit: 8a9f6a2e0a15ed6d5fcab7030249f0211b667d60
Author: Wannes Malfait
Date: Sun Sep 18 22:58:51 2022 -0500
Branches: master
https://developer.blender.org/rB8a9f6a2e0a15ed6d5fcab7030249f0211b667d60
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
===================================================================
M source/blender/blenkernel/intern/mesh_runtime.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_runtime.cc b/source/blender/blenkernel/intern/mesh_runtime.cc
index a66f2a714e7..4b6433edd5a 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.cc
+++ b/source/blender/blenkernel/intern/mesh_runtime.cc
@@ -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);
}
}
More information about the Bf-blender-cvs
mailing list