From 23a95b897edcae8450c7bdb300512112a93f6c5f Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 1 May 2014 09:14:12 +0200 Subject: [PATCH] Ignore the G92 offset for the preview. --- Cura/util/gcodeInterpreter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cura/util/gcodeInterpreter.py b/Cura/util/gcodeInterpreter.py index ad399d70..e7407a92 100644 --- 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: -- 2.30.2