Fix error calculating bmesh normals

edge vector stack was left un-cleared.
This commit is contained in:
Campbell Barton 2015-06-03 18:10:43 +10:00
parent 6fbb580e51
commit b07be730b2
1 changed files with 4 additions and 0 deletions

View File

@ -372,6 +372,10 @@ void BKE_lnor_space_define(MLoopNorSpace *lnor_space, const float lnor[3],
/* If vec_ref or vec_other are too much aligned with lnor, we can't build lnor space,
* tag it as invalid and abort. */
lnor_space->ref_alpha = lnor_space->ref_beta = 0.0f;
if (edge_vectors) {
BLI_stack_clear(edge_vectors);
}
return;
}