py3: fix some simple incompapilities

issue 0000995
This commit is contained in:
looooo
2017-06-21 11:25:30 +02:00
parent 931820c4b1
commit 3e8249a0e6
5 changed files with 14 additions and 14 deletions

View File

@@ -156,7 +156,7 @@ class _CompoundFilter:
scale = obj.Base.Shape.BoundBox.DiagonalLength / math.sqrt(3) / math.sqrt(len(shps))
if scale < DistConfusion * 100:
scale = 1.0
print scale
print(scale)
obj.Shape = getNullShapeShape(scale)
raise ValueError('Nothing passes through the filter') # Feeding empty compounds to FreeCAD seems to cause rendering issues, otherwise it would have been a good idea to output nothing.