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:
3d853d5
)
Fix loading of GCode files.
author
daid
<daid303@gmail.com>
Wed, 12 Feb 2014 15:09:46 +0000
(16:09 +0100)
committer
daid
<daid303@gmail.com>
Wed, 12 Feb 2014 15:09:46 +0000
(16:09 +0100)
Cura/gui/sceneView.py
patch
|
blob
|
history
diff --git
a/Cura/gui/sceneView.py
b/Cura/gui/sceneView.py
index c75d1187d2418b6442673866c783543bf6bb86ac..268ac8d47af64e451f449beda5e7af8ff6d8aadf 100644
(file)
--- a/
Cura/gui/sceneView.py
+++ b/
Cura/gui/sceneView.py
@@
-122,7
+122,10
@@
class SceneView(openglGui.glGuiPanel):
def loadGCodeFile(self, filename):
self.OnDeleteAll(None)
- #TODO: Load straight GCodeFile
+ #Cheat the engine results to load a GCode file into it.
+ self._engine._result = sliceEngine.EngineResult()
+ with open(filename, "r") as f:
+ self._engine._result.setGCode(f.read())
self.printButton.setBottomText('')
self.viewSelection.setValue(4)
self.printButton.setDisabled(False)