mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Fixed broken getInstance caused by refactor
This commit is contained in:
parent
b187cf89a5
commit
b34bb26a1a
1 changed files with 1 additions and 1 deletions
|
@ -616,7 +616,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
warnings.append(i18n_catalog.i18nc("@label", "Not enough material for spool {0}.").format(index+1))
|
warnings.append(i18n_catalog.i18nc("@label", "Not enough material for spool {0}.").format(index+1))
|
||||||
|
|
||||||
# Check if the right cartridges are loaded. Any failure in these results in a warning.
|
# Check if the right cartridges are loaded. Any failure in these results in a warning.
|
||||||
extruder_manager = cura.Settings.ExtruderManager.getInstance()
|
extruder_manager = cura.Settings.ExtruderManager.ExtruderManager.getInstance()
|
||||||
if print_information.materialLengths[index] != 0:
|
if print_information.materialLengths[index] != 0:
|
||||||
variant = extruder_manager.getExtruderStack(index).findContainer({"type": "variant"})
|
variant = extruder_manager.getExtruderStack(index).findContainer({"type": "variant"})
|
||||||
core_name = self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["id"]
|
core_name = self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["id"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue