From 5358dfe2d6cbcbd92649f769ac908238bc2f1a55 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 10 Dec 2015 13:51:36 +0100 Subject: [PATCH] Fix imports for GCodeReader This code was more or less copied from the writer. It requires regular expressions and the application, but I didn't take the imports along. Contributes to issue CURA-34. --- plugins/GCodeReader/GCodeReader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py index 6b36965cb4..2d8aef03c9 100644 --- a/plugins/GCodeReader/GCodeReader.py +++ b/plugins/GCodeReader/GCodeReader.py @@ -1,7 +1,9 @@ # Copyright (c) 2015 Ultimaker B.V. # Cura is released under the terms of the AGPLv3 or higher. +from UM.Application import Application #To get the current profile that should be updated with the settings from the g-code. from UM.Mesh.MeshReader import MeshReader +import re #Regular expressions for parsing escape characters in the settings. ## A class that reads profile data from g-code files. #