mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Make sure that the preferred material name variable exists
Another small bug I found when looking through this MachineManager code. My IDE was complaining that the preferred_material_name was not always initialised and that preferred_material was an unused variable. Doesn't contribute to issue CURA-3803.
This commit is contained in:
parent
cc3402ab81
commit
bec43d5b9a
1 changed files with 1 additions and 1 deletions
|
@ -781,7 +781,7 @@ class MachineManager(QObject):
|
|||
self.blurSettings.emit()
|
||||
self._active_container_stack.variant = containers[0]
|
||||
Logger.log("d", "Active variant changed to {active_variant_id}".format(active_variant_id = containers[0].getId()))
|
||||
preferred_material = None
|
||||
preferred_material_name = None
|
||||
if old_material:
|
||||
preferred_material_name = old_material.getName()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue