From bec43d5b9a6d467a7c9e147e457068f61cd71802 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 22 May 2017 14:25:43 +0200 Subject: [PATCH] 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. --- cura/Settings/MachineManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 6f1b82a7b8..04a3f91e50 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -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()