mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue