Fix assert in the wrong place, should be moved earlier to do anything.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2304
This commit is contained in:
Chase Willden 2016-10-16 15:50:53 +02:00 committed by Brecht Van Lommel
parent d59079c5e1
commit ad393e1e75
1 changed files with 2 additions and 1 deletions

View File

@ -3855,9 +3855,10 @@ static bool bev_rebuild_polygon(BMesh *bm, BevelParams *bp, BMFace *f)
bv = find_bevvert(bp, l->v);
vm = bv->vmesh;
e = find_edge_half(bv, l->e);
BLI_assert(e != NULL);
bme = e->e;
eprev = find_edge_half(bv, lprev->e);
BLI_assert(e != NULL && eprev != NULL);
BLI_assert(eprev != NULL);
/* which direction around our vertex do we travel to match orientation of f? */
if (e->prev == eprev) {