Fix for gcode preview, was showing very thin lines because of the new start code.

master
Daid 2012-07-07 08:30:53 +02:00
parent 7a2f56e3f4
commit 081ac97f95
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class gcode(object):
if totalExtrusion > maxExtrusion:
maxExtrusion = totalExtrusion
if moveType == 'move' and oldPos.z != pos.z:
if oldPos.z > pos.z and abs(oldPos.z - pos.z) > 5.0 and pos.z < 1.0:
oldPos.z = 0.0
layerThickness = abs(oldPos.z - pos.z)
if currentPath.type != moveType or currentPath.pathType != pathType:
currentPath = gcodePath(moveType, pathType, layerThickness, currentPath.list[-1])