mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:45:56 +08:00
Remove superfluous if statement
CURA-2600
This commit is contained in:
parent
c0654c56a0
commit
c9ee7afcb8
@ -148,8 +148,7 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
if matching_extruder and matching_extruder.findContainer({"type": "material"}).getMetaDataEntry("GUID") != material_id:
|
if matching_extruder and matching_extruder.findContainer({"type": "material"}).getMetaDataEntry("GUID") != material_id:
|
||||||
# Save the material that needs to be changed. Multiple changes will be handled by the callback.
|
# Save the material that needs to be changed. Multiple changes will be handled by the callback.
|
||||||
if matching_extruder:
|
variant_container = matching_extruder.findContainer({"type": "variant"})
|
||||||
variant_container = matching_extruder.findContainer({"type": "variant"})
|
|
||||||
if self._global_container_stack.getBottom().getMetaDataEntry("has_variants") and variant_container:
|
if self._global_container_stack.getBottom().getMetaDataEntry("has_variants") and variant_container:
|
||||||
variant_id = self.getQualityVariantId(self._global_container_stack.getBottom(), variant_container)
|
variant_id = self.getQualityVariantId(self._global_container_stack.getBottom(), variant_container)
|
||||||
for container in containers:
|
for container in containers:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user