mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:49:04 +08:00
Fix testing against literal instead of value
Contribute to CURA-10831
This commit is contained in:
parent
2d3ef87a47
commit
7a4d26452a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user