diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-11 18:00:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-11 18:00:11 +0400 |
commit | 384f7a7875239861de5c36f034271c1621b9de51 (patch) | |
tree | 38d0e3d7284a75b0c0bddda6aed4b3a3c1015ad6 /release | |
parent | 2d0b69f3c3b1492d822132836756508fab9c06af (diff) |
mesh_wire, fixed error with zero area edges
Holding Ctrl flips the align view in editmode. (patch from BeBraw)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/mesh_wire.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/mesh_wire.py b/release/scripts/mesh_wire.py index e01d54fa86f..b98de7d218d 100644 --- a/release/scripts/mesh_wire.py +++ b/release/scripts/mesh_wire.py @@ -167,9 +167,12 @@ def solid_wire(ob_orig, me_orig, sce, PREF_THICKNESS, PREF_SOLID, PREF_SHARP, PR if PREF_SHARP == 0: def add_tri_flipped(i1,i2,i3): - if AngleBetweenVecs(me.verts[i1].no, TriangleNormal(me.verts[i1].co, me.verts[i2].co, me.verts[i3].co)) < 90: - return i3,i2,i1 - else: + try: + if AngleBetweenVecs(me.verts[i1].no, TriangleNormal(me.verts[i1].co, me.verts[i2].co, me.verts[i3].co)) < 90: + return i3,i2,i1 + else: + return i1,i2,i3 + except: return i1,i2,i3 # This stores new verts that use this vert |