Fix T50352: 3D-printing check misinterprates flat ngons as non-flat
This commit is contained in:
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
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue