Skip to content

Commit

Permalink
avoid stop loading on coincident points
Browse files Browse the repository at this point in the history
  • Loading branch information
easyw committed Nov 2, 2017
1 parent adc24f8 commit 095bc78
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Mod/Draft/importSVG.py
Expand Up @@ -625,10 +625,11 @@ def startElement(self, name, attrs):
currentvec = lastvec.add(Vector(0,-y,0))
else:
currentvec = Vector(lastvec.x,-y,0)
seg = Part.LineSegment(lastvec,currentvec).toShape()
lastvec = currentvec
lastpole = None
path.append(seg)
if lastvec!=currentvec:
seg = Part.LineSegment(lastvec,currentvec).toShape()
lastvec = currentvec
lastpole = None
path.append(seg)
elif (d == "A" or d == "a"):
for rx,ry,xrotation, largeflag, sweepflag,x,y in \
zip(pointlist[0::7],pointlist[1::7],pointlist[2::7],pointlist[3::7],pointlist[4::7],pointlist[5::7],pointlist[6::7]):
Expand Down

0 comments on commit 095bc78

Please sign in to comment.