Fix empty set marker for lattice arrays

Wasn't displayed when array contained nothing
This commit is contained in:
DeepSOIC 2015-11-03 01:50:06 +03:00
parent 41160ec54b
commit bc5cb9fce7

View File

@ -142,7 +142,7 @@ class LatticeFeature():
shapes.append(sh)
if len(shapes) == 0:
obj.Shape = markers.getNullShapeShape(markerSize)
obj.Shape = latticeMarkers.getNullShapeShape(markerSize)
raise ValueError('Lattice object is null') #Feeding empty compounds to FreeCAD seems to cause rendering issues, otherwise it would have been a good idea to output nothing.
sh = Part.makeCompound(shapes)