diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 74102a862b..b47190e726 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -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))