mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove getting superfluous material density
The density is already put in the 'properties' metadata entry. Don't need to put it in there doubly. Turns out that this density line was originally just superfluous. Contributes to issue CURA-3427 or something.
This commit is contained in:
parent
98662bc6f6
commit
1e4c394b71
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,6 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
property_values[tag_name] = entry.text
|
||||
|
||||
meta_data["approximate_diameter"] = round(float(property_values.get("diameter", 2.85))) # In mm
|
||||
meta_data["density"] = float(property_values.get("density", 1.3)) # In g/cm3
|
||||
meta_data["properties"] = property_values
|
||||
|
||||
self.setDefinition(ContainerRegistry.getInstance().findDefinitionContainers(id = "fdmprinter")[0])
|
||||
|
@ -476,6 +475,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
meta_data["compatible"] = global_compatibility
|
||||
self.setMetaData(meta_data)
|
||||
self._dirty = False
|
||||
print(self.getMetaData())
|
||||
|
||||
machines = data.iterfind("./um:settings/um:machine", self.__namespaces)
|
||||
for machine in machines:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue