Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-04 19:32:21 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:29:02 +0300
commit45a443daecc6783557ab3145105c3319b9839959 (patch)
treee3ce6fd8cf861e4c5fc42babe4fc1b73bb5605b9 /source/blender/blenkernel/intern
parentefdaa56d015343dc2aefefeaf47e6287ab14fab5 (diff)
Fix: Remove incorrect assert in mesh modifier evaluation
Since we have a node that sets a mesh's auto smooth angle (unfortunately, in retrospect), we generally can't assume at all that value is the same as whatever input mesh. Similar asserts were removed previously in 8216b759e9557c786. While the attempt at assertions to clarify assumptions is noble, this one doesn't make sense anymore. I found this while investigating T95479. Differential Revision: https://developer.blender.org/D14009
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/DerivedMesh.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.cc b/source/blender/blenkernel/intern/DerivedMesh.cc
index aa810afd3ef..2e779d6fad7 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.cc
+++ b/source/blender/blenkernel/intern/DerivedMesh.cc
@@ -1585,13 +1585,6 @@ static void editbmesh_calc_modifiers(struct Depsgraph *depsgraph,
BKE_id_free(nullptr, mesh_orco);
}
- /* Ensure normals calculation below is correct (normal settings have transferred properly).
- * However, nodes modifiers might create meshes from scratch or transfer meshes from other
- * objects with different settings, and in general it doesn't make sense to guarantee that
- * the settings are the same as the original mesh. If necessary, this could become a modifier
- * type flag. */
- BLI_assert(mesh_input->smoothresh == mesh_cage->smoothresh);
-
/* Compute normals. */
editbmesh_calc_modifier_final_normals(mesh_final, &final_datamask);
if (mesh_cage && (mesh_cage != mesh_final)) {