mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Do not load material when no GUID is present instead of crashing Cura
This commit is contained in:
parent
e9d2623237
commit
c13b77d8a1
2 changed files with 7 additions and 4 deletions
|
@ -540,7 +540,8 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
|
||||
validation_message = XmlMaterialValidator.validateMaterialMetaData(meta_data)
|
||||
if validation_message is not None:
|
||||
raise Exception("Not valid material profile: %s" % (validation_message))
|
||||
return
|
||||
# raise Exception("Not valid material profile: %s" % (validation_message))
|
||||
|
||||
property_values = {}
|
||||
properties = data.iterfind("./um:properties/*", self.__namespaces)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue