chiark / gitweb /
Update firmwares to 13.12 to fix the acceleration planner bug. Add dialog on new...
[cura.git] / Cura / cura.py
index 2172a4bfa5959fbbc2891f85f3f927dfff3a6310..c631a02ff3255bb598daab70bd3574c12ad190ce 100644 (file)
@@ -45,15 +45,17 @@ def main():
                from Cura.util import meshLoader
                import shutil
 
-               def commandlineProgessCallback(progress, ready):
+               def commandlineProgressCallback(progress, ready):
                        if progress >= 0 and not ready:
                                print 'Preparing: %d%%' % (progress * 100)
                scene = objectScene.Scene()
-               slicer = sliceEngine.Slicer(commandlineProgessCallback)
+               scene.updateMachineDimensions()
+               slicer = sliceEngine.Slicer(commandlineProgressCallback)
                for m in meshLoader.loadMeshes(args[0]):
                        scene.add(m)
                slicer.runSlicer(scene)
                slicer.wait()
+               profile.replaceGCodeTagsFromSlicer(slicer.getGCodeFilename(), slicer)
 
                if options.output:
                        shutil.copyfile(slicer.getGCodeFilename(), options.output)