Commit 9bbe57fe authored by Guillaume Seguin's avatar Guillaume Seguin

Use LightGCode when using NoViz

parent d701a718
...@@ -1389,6 +1389,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1389,6 +1389,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def pre_gcode_load(self): def pre_gcode_load(self):
self.loading_gcode = True self.loading_gcode = True
self.loading_gcode_message = _("Loading %s...") % self.filename self.loading_gcode_message = _("Loading %s...") % self.filename
if self.settings.mainviz == "None":
gcode = gcoder.LightGCode(deferred = True)
else:
gcode = gcoder.GCode(deferred = True) gcode = gcoder.GCode(deferred = True)
self.viz_last_yield = 0 self.viz_last_yield = 0
self.viz_last_layer = -1 self.viz_last_layer = -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment