Fix testing against literal instead of value

Contribute to CURA-10831
This commit is contained in:
Jelle Spijker 2023-12-04 14:00:42 +01:00
parent 2d3ef87a47
commit 7a4d26452a
No known key found for this signature in database
GPG key ID: 034D1C0527888B65

View file

@ -43,7 +43,7 @@ class MaterialOutputModel(QObject):
}
if guid is None and brand is not "empty" and type in _MATERIAL_MAP:
if guid is None and brand != "empty" and type in _MATERIAL_MAP:
name = _MATERIAL_MAP[type]["name"]
guid = _MATERIAL_MAP[type]["guid"]
return name, guid