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:
fbf92d2
)
Ignore the G92 offset for the preview.
author
daid
<daid303@gmail.com>
Thu, 1 May 2014 07:14:12 +0000
(09:14 +0200)
committer
daid
<daid303@gmail.com>
Thu, 1 May 2014 07:14:12 +0000
(09:14 +0200)
Cura/util/gcodeInterpreter.py
patch
|
blob
|
history
diff --git
a/Cura/util/gcodeInterpreter.py
b/Cura/util/gcodeInterpreter.py
index ad399d702f705c8fe12fd0a18e20a7f3da11634c..e7407a926ce8098c9590433ece25a6d3e80d6a79 100644
(file)
--- a/
Cura/util/gcodeInterpreter.py
+++ b/
Cura/util/gcodeInterpreter.py
@@
-219,12
+219,12
@@
class gcode(object):
e = getCodeFloat(line, 'E')
if e is not None:
currentE = e
- if x is not None:
-
posOffset[0] = pos[0] - x
- if y is not None:
-
posOffset[1] = pos[1] - y
- if z is not None:
-
posOffset[2] = pos[2] - z
+
#
if x is not None:
+
#
posOffset[0] = pos[0] - x
+
#
if y is not None:
+
#
posOffset[1] = pos[1] - y
+
#
if z is not None:
+
#
posOffset[2] = pos[2] - z
else:
print "Unknown G code:" + str(G)
else: