[Bf-blender-cvs] [2438f76d6f2] master: Fix: Assert calculating mesh triangulation
Hans Goudey
noreply at git.blender.org
Fri Sep 23 17:45:23 CEST 2022
Commit: 2438f76d6f289b237aac582405a0adeb10009ea1
Author: Hans Goudey
Date: Fri Sep 23 10:44:55 2022 -0500
Branches: master
https://developer.blender.org/rB2438f76d6f289b237aac582405a0adeb10009ea1
Fix: Assert calculating mesh triangulation
The condition from 0d7d8c73cf5c5c5f05c was reversed.
===================================================================
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 d7a0b73298e..782657428f5 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.cc
+++ b/source/blender/blenkernel/intern/mesh_runtime.cc
@@ -154,7 +154,7 @@ void BKE_mesh_runtime_looptri_recalc(Mesh *mesh)
const Span<MPoly> polys = mesh->polys();
const Span<MLoop> loops = mesh->loops();
- if (BKE_mesh_poly_normals_are_dirty(mesh)) {
+ if (!BKE_mesh_poly_normals_are_dirty(mesh)) {
BKE_mesh_recalc_looptri_with_normals(loops.data(),
polys.data(),
verts.data(),
More information about the Bf-blender-cvs
mailing list