Bevel code: add a null pointer check.

This commit is contained in:
Howard Trickey 2021-03-20 13:03:43 -04:00
parent 90959c2372
commit 057292e75a
1 changed files with 3 additions and 0 deletions

View File

@ -7289,6 +7289,9 @@ static float geometry_collide_offset(BevelParams *bp, EdgeHalf *eb)
kc = 0.0f;
ec = NULL;
/* Find an edge from c that has same face. */
if (eb->fnext == NULL) {
return no_collide_offset;
}
BMLoop *lb = BM_face_edge_share_loop(eb->fnext, eb->e);
if (!lb) {
return no_collide_offset;