[Bf-blender-cvs] [0046ed373e0] temp-vert-normals-cleanup: Fix: Incorrect assert

Hans Goudey noreply at git.blender.org
Thu Dec 9 21:30:48 CET 2021


Commit: 0046ed373e05089fafe5fff76b33e7de34f5c1d5
Author: Hans Goudey
Date:   Thu Dec 9 14:30:41 2021 -0600
Branches: temp-vert-normals-cleanup
https://developer.blender.org/rB0046ed373e05089fafe5fff76b33e7de34f5c1d5

Fix: Incorrect assert

===================================================================

M	source/blender/blenkernel/intern/mesh_normals.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/mesh_normals.cc b/source/blender/blenkernel/intern/mesh_normals.cc
index 2d1c50cfe8d..b36d1b58c0d 100644
--- a/source/blender/blenkernel/intern/mesh_normals.cc
+++ b/source/blender/blenkernel/intern/mesh_normals.cc
@@ -361,7 +361,7 @@ void BKE_mesh_assert_normals_dirty_or_calculated(const Mesh *mesh)
     BLI_assert(CustomData_has_layer(&mesh->vdata, CD_NORMAL));
   }
   if (!(mesh->runtime.cd_dirty_poly & CD_MASK_NORMAL)) {
-    BLI_assert(CustomData_has_layer(&mesh->vdata, CD_NORMAL));
+    BLI_assert(CustomData_has_layer(&mesh->pdata, CD_NORMAL));
   }
 }



More information about the Bf-blender-cvs mailing list