Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fixing line vs linesegment problem in FreeCAD 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Dec 11, 2017
1 parent af5710d commit 18cb7ec
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cadquery/freecad_impl/shapes.py
Expand Up @@ -424,12 +424,18 @@ def __init__(self, obj):
FreeCADPart.Circle: 'CIRCLE'
}

if hasattr(FreeCADPart,"Line"):
self.edgetypes[FreeCADPart.Line] = 'LINE'

if hasattr(FreeCADPart,"LineSegment"):
#FreeCAD <= 0.16
self.edgetypes[FreeCADPart.LineSegment] = 'LINE'
else:
#FreeCAD >= 0.17
self.edgetypes[FreeCADPart.Line] = 'LINE'

# if hasattr(FreeCADPart,"LineSegment"):
# #FreeCAD <= 0.16
# self.edgetypes[FreeCADPart.LineSegment] = 'LINE'
# else:
# #FreeCAD >= 0.17
# self.edgetypes[FreeCADPart.Line] = 'LINE'

# Helps identify this solid through the use of an ID
self.label = ""
Expand Down

0 comments on commit 18cb7ec

Please sign in to comment.