chiark / gitweb /
Only load the GCode when you are viewing the layer view, which keeps the performance...
[cura.git] / Cura / util / gcodeInterpreter.py
index 2403f2c93a18639a379cd2e5934cf6d10d52e34a..b613a641dc5af99e3377900dd7531f8ca3606588 100644 (file)
@@ -26,7 +26,7 @@ def gcodePath(newType, pathType, layerThickness, startPoint):
 class gcode(object):
        def __init__(self):
                self.regMatch = {}
-               self.layerList = []
+               self.layerList = None
                self.extrusionAmount = 0
                self.totalMoveTimeMinute = 0
                self.filename = None
@@ -62,6 +62,7 @@ class gcode(object):
                return None
        
        def _load(self, gcodeFile):
+               self.layerList = []
                pos = [0.0, 0.0, 0.0]
                posOffset = [0.0, 0.0, 0.0]
                currentE = 0.0