Read & write all generic metadata items from 3mf

CURA-7615
This commit is contained in:
Jaime van Kessel 2020-12-23 13:49:52 +01:00
parent f9d0da7a12
commit f338acd4f3
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 8 additions and 0 deletions

View file

@ -148,6 +148,10 @@ class ThreeMFWriter(MeshWriter):
savitar_scene = Savitar.Scene()
metadata_to_store = CuraApplication.getInstance().getController().getScene().getMetaData()
for key, value in metadata_to_store.items():
savitar_scene.setMetaDataEntry(key, value)
current_time_string = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
if "Application" not in metadata_to_store:
# This might sound a bit strange, but this field should store the original application that created