Skip to content

Commit

Permalink
Prevent admesh to reverse all facets twice in some mostly-random situ…
Browse files Browse the repository at this point in the history
…ations.

Normalizing a null normal should still return a null normal in order to fix it properly later
instead of treating it as if it was a true normal and thus reversing the facet (and if that is
the first facet, all of the others would be reversed as well).
  • Loading branch information
alranel authored and hroncok committed Nov 20, 2013
1 parent e524c2a commit 171d20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/normals.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void stl_normalize_vector(float v[])
min_normal_length = 0.000000000001;
if(length < min_normal_length)
{
v[0] = 1.0;
v[0] = 0.0;
v[1] = 0.0;
v[2] = 0.0;
return;
Expand Down

0 comments on commit 171d20c

Please sign in to comment.