[Bf-blender-cvs] [822fb550f2a] temp-T97352-3d-texturing-seam-bleeding-b2: Fix T101137: Crash with Transform Node

Wannes Malfait noreply at git.blender.org
Tue Sep 20 10:32:15 CEST 2022


Commit: 822fb550f2a5592c740ae5e6a71e29fcd5fe9b8b
Author: Wannes Malfait
Date:   Sun Sep 18 22:58:51 2022 -0500
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB822fb550f2a5592c740ae5e6a71e29fcd5fe9b8b

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