Add possibility to check material-profiles.

Needed to add the filename to deserialize, feels a bit unsafe as an optional parameter, will discuss tomorrow.
part of CURA-6856
This commit is contained in:
Remco Burema 2019-10-29 17:45:19 +01:00
parent 7780d76eb6
commit 298eb27c7f
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 15 additions and 3 deletions

View file

@ -157,7 +157,7 @@ class LegacyProfileReader(ProfileReader):
data = stream.getvalue()
profile = InstanceContainer(profile_id)
profile.deserialize(data) # Also performs the version upgrade.
profile.deserialize(data, file_name) # Also performs the version upgrade.
profile.setDirty(True)
#We need to return one extruder stack and one global stack.