diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-03 11:10:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-03 11:10:43 +0300 |
commit | b07be730b22b1e97a8bd446a8524198f7d3ec028 (patch) | |
tree | 29149bcc80ad1173c75aa3bd32260d33e6aea9c0 /source | |
parent | 6fbb580e515c0ac0d4c04af81967a09c6b1bd94e (diff) |
Fix error calculating bmesh normals
edge vector stack was left un-cleared.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_evaluate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh_evaluate.c b/source/blender/blenkernel/intern/mesh_evaluate.c index 302d85e8128..d17ca751c5e 100644 --- a/source/blender/blenkernel/intern/mesh_evaluate.c +++ b/source/blender/blenkernel/intern/mesh_evaluate.c @@ -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; } |