Do not trigger slicing if there's no slicable object

CURA-6604
This commit is contained in:
Lipu Fei 2019-09-03 20:01:10 +02:00
parent 09dc209956
commit 0524796145
2 changed files with 13 additions and 5 deletions

View file

@ -476,11 +476,6 @@ class FlavorParser:
machine_depth = global_stack.getProperty("machine_depth", "value")
scene_node.setPosition(Vector(-machine_width / 2, 0, machine_depth / 2))
# Make sure that all seen extruders (if exist in the currently active machine) are enabled.
for extruder_nr in self._extruders_seen:
if str(extruder_nr) in global_stack.extruders:
CuraApplication.getInstance().getMachineManager().setExtruderEnabled(extruder_nr, True)
Logger.log("d", "GCode loading finished")
if CuraApplication.getInstance().getPreferences().getValue("gcodereader/show_caution"):