Commit: 7865185d986558b5fd40e669c91f86f1967f0304 Author: Henrik Dick Date: Mon Apr 20 16:15:53 2020 +0200 Branches: blender-v2.83-release https://developer.blender.org/rB7865185d986558b5fd40e669c91f86f1967f0304
Fix T75840: Add check for not generated edges The value of `new_edge` is `SOLIDIFY_EMPTY_TAG=2^32-1` if the edge is not generated. The code from D7334 was missing this check. Reviewed By: mont29 Maniphest Tasks: T75840 Differential Revision: https://developer.blender.org/D7463 =================================================================== M source/blender/modifiers/intern/MOD_solidify_nonmanifold.c =================================================================== diff --git a/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c b/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c index e56ae82379e..3188bb59ae4 100644 --- a/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c +++ b/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c @@ -2012,9 +2012,11 @@ Mesh *MOD_solidify_nonmanifold_applyModifier(ModifierData *md, if (ed->crease > max_crease) { max_crease = ed->crease; } - char bweight = medge[g->edges[k]->new_edge].bweight; - if (bweight > max_bweight) { - max_bweight = bweight; + if (g->edges[k]->new_edge != MOD_SOLIDIFY_EMPTY_TAG) { + char bweight = medge[g->edges[k]->new_edge].bweight; + if (bweight > max_bweight) { + max_bweight = bweight; + } } flag |= ed->flag; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs