Fix T50352: 3D-printing check misinterprates flat ngons as non-flat

This commit is contained in:
Philipp Oeser 2017-01-11 20:56:09 +01:00
parent 2dac418a46
commit 8c06e5c7d9
Notes: blender-bot 2023-02-14 07:18:50 +01:00
Referenced by issue blender/blender#50352, 3D-printing check misinterprates flat ngons as non-flat
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ class Print3DCheckDistorted(Operator):
no = ele.normal
angle_fn = no.angle
for loop in ele.loops:
if angle_fn(loop.calc_normal(), 1000.0) > angle_distort:
loopno = loop.calc_normal()
if loopno.dot(no) < 0.0:
loopno.negate()
if angle_fn(loopno, 1000.0) > angle_distort:
return True
return False