Fix T56258: Solidify assert w/ empty mesh

This commit is contained in:
Campbell Barton 2018-08-07 12:58:08 +10:00
parent 3d083f376b
commit f707984743
Notes: blender-bot 2023-02-14 06:23:08 +01:00
Referenced by issue #56258, Blender 2.8 crash with modifier stack + separate by selection
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ static Mesh *applyModifier(
/* add faces & edges */
origindex_edge = CustomData_get_layer(&result->edata, CD_ORIGINDEX);
BLI_assert(origindex_edge != NULL);
BLI_assert((numEdges == 0) || (origindex_edge != NULL));
ed = &medge[(numEdges * stride) + newEdges]; /* start after copied edges */
orig_ed = &origindex_edge[(numEdges * stride) + newEdges];
for (i = 0; i < rimVerts; i++, ed++, orig_ed++) {