mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Expect to always have a build plate
Contributes to CL-1250
This commit is contained in:
parent
5d294a7ff5
commit
0be6c9e6d3
1 changed files with 2 additions and 8 deletions
|
@ -48,7 +48,7 @@ class CloudClusterPrinterStatus(BaseCloudModel):
|
|||
self.maintenance_required = maintenance_required
|
||||
self.firmware_update_status = firmware_update_status
|
||||
self.latest_available_firmware = latest_available_firmware
|
||||
self.build_plate = self.parseModel(CloudClusterBuildPlate, build_plate) if build_plate else None
|
||||
self.build_plate = self.parseModel(CloudClusterBuildPlate, build_plate)
|
||||
super().__init__(**kwargs)
|
||||
|
||||
## Creates a new output model.
|
||||
|
@ -65,13 +65,7 @@ class CloudClusterPrinterStatus(BaseCloudModel):
|
|||
model.updateName(self.friendly_name)
|
||||
model.updateType(self.machine_variant)
|
||||
model.updateState(self.status if self.enabled else "disabled")
|
||||
|
||||
# Make sure to set the build plate even though we don't use it. Since it's optional, use
|
||||
# glass as a default
|
||||
if self.build_plate:
|
||||
model.updateBuildplate(self.build_plate.type)
|
||||
else:
|
||||
model.updateBuildplate("glass")
|
||||
model.updateBuildplate(self.build_plate.type)
|
||||
|
||||
for configuration, extruder_output, extruder_config in \
|
||||
zip(self.configuration, model.extruders, model.printerConfiguration.extruderConfigurations):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue