mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 20:31:35 -07:00
Do not only check if activeMaterialId is None, also check for empty
Fixes CURA-4065
This commit is contained in:
parent
22c1a118a8
commit
b839cb74f4
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||||
profile.setDefinition(self._activeQualityDefinition())
|
profile.setDefinition(self._activeQualityDefinition())
|
||||||
if self._machineHasOwnMaterials():
|
if self._machineHasOwnMaterials():
|
||||||
active_material_id = self._activeMaterialId()
|
active_material_id = self._activeMaterialId()
|
||||||
if active_material_id: # only update if there is an active material
|
if active_material_id and active_material_id != "empty": # only update if there is an active material
|
||||||
profile.addMetaDataEntry("material", active_material_id)
|
profile.addMetaDataEntry("material", active_material_id)
|
||||||
quality_type_criteria["material"] = active_material_id
|
quality_type_criteria["material"] = active_material_id
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue