Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-24 03:36:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-24 03:36:02 +0400
commitd030a694ef323390861bfff6d2bacdadd41dd484 (patch)
treec82db25e9a76001d5548800359ad03cd3aedcb75 /object_print3d_utils
parent8ec6e6018e4352bf8da9fe756e4341c5845b0328 (diff)
Fix T38788: zero area faces raised exception with overhang test
Diffstat (limited to 'object_print3d_utils')
-rw-r--r--object_print3d_utils/operators.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/object_print3d_utils/operators.py b/object_print3d_utils/operators.py
index 7ebf5956..4f9bc647 100644
--- a/object_print3d_utils/operators.py
+++ b/object_print3d_utils/operators.py
@@ -297,8 +297,9 @@ class Print3DCheckOverhang(Operator):
z_down = Vector((0, 0, -1.0))
z_down_angle = z_down.angle
+ # 4.0 ignores zero area faces
faces_overhang = [ele.index for ele in bm.faces
- if z_down_angle(ele.normal) < angle_overhang]
+ if z_down_angle(ele.normal, 4.0) < angle_overhang]
info.append(("Overhang Face: %d" % len(faces_overhang),
(bmesh.types.BMFace, faces_overhang)))