chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a2f56e
)
Fix for gcode preview, was showing very thin lines because of the new start code.
author
Daid
<daid303@gmail.com>
Sat, 7 Jul 2012 06:30:53 +0000
(08:30 +0200)
committer
Daid
<daid303@gmail.com>
Sat, 7 Jul 2012 06:30:53 +0000
(08:30 +0200)
Cura/util/gcodeInterpreter.py
patch
|
blob
|
history
diff --git
a/Cura/util/gcodeInterpreter.py
b/Cura/util/gcodeInterpreter.py
index ea7985f0d19dc817bfb6914f087ffb5db7c5f29a..40f3f183b5e6a1f2a1a7d4c23b6410f2db135d01 100644
(file)
--- a/
Cura/util/gcodeInterpreter.py
+++ b/
Cura/util/gcodeInterpreter.py
@@
-151,6
+151,8
@@
class gcode(object):
if totalExtrusion > maxExtrusion:
maxExtrusion = totalExtrusion
if moveType == 'move' and oldPos.z != pos.z:
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])
layerThickness = abs(oldPos.z - pos.z)
if currentPath.type != moveType or currentPath.pathType != pathType:
currentPath = gcodePath(moveType, pathType, layerThickness, currentPath.list[-1])