mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:29:01 +08:00
Explicitly check label xml element if it's none
For some stupid reason, an XML element evaluates to false. CURA-1968
This commit is contained in:
parent
e1df8d74d3
commit
3a921264fc
@ -241,7 +241,7 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
||||
color = entry.find("./um:color", self.__namespaces)
|
||||
label = entry.find("./um:label", self.__namespaces)
|
||||
|
||||
if label:
|
||||
if label is not None:
|
||||
self.setName(label.text)
|
||||
else:
|
||||
self.setName(self._profile_name(material.text, color.text))
|
||||
|
Loading…
x
Reference in New Issue
Block a user