mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Remove hardcoded value for num extruders
CURA-7745
This commit is contained in:
parent
f25bfd717e
commit
99f42c179f
2 changed files with 2 additions and 8 deletions
|
@ -194,8 +194,7 @@ Item
|
||||||
var configs = []
|
var configs = []
|
||||||
if (printer)
|
if (printer)
|
||||||
{
|
{
|
||||||
configs.push(printer.printerConfiguration.extruderConfigurations[0])
|
configs = configs.concat(printer.printerConfiguration.extruderConfigurations)
|
||||||
configs.push(printer.printerConfiguration.extruderConfigurations[1])
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,12 +71,7 @@ class ClusterPrinterStatus(BaseModel):
|
||||||
|
|
||||||
:param controller: - The controller of the model.
|
:param controller: - The controller of the model.
|
||||||
"""
|
"""
|
||||||
|
model = PrinterOutputModel(controller, len(self.configuration), firmware_version = self.firmware_version)
|
||||||
# FIXME
|
|
||||||
# Note that we're using '2' here as extruder count. We have hardcoded this for now to prevent issues where the
|
|
||||||
# amount of extruders coming back from the API is actually lower (which it can be if a printer was just added
|
|
||||||
# to a cluster). This should be fixed in the future, probably also on the cluster API side.
|
|
||||||
model = PrinterOutputModel(controller, 2, firmware_version = self.firmware_version)
|
|
||||||
self.updateOutputModel(model)
|
self.updateOutputModel(model)
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue