diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-12-23 15:49:52 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-12-23 15:49:52 +0300 |
commit | f338acd4f33f8ead0d8de20965c2705274b04b5c (patch) | |
tree | 41dc1ab77ea848cb135801c37ffee96bd58e8b20 /plugins/3MFReader/ThreeMFReader.py | |
parent | f9d0da7a1286ce250fcfacd6ac866c7de5386684 (diff) |
Read & write all generic metadata items from 3mf
CURA-7615
Diffstat (limited to 'plugins/3MFReader/ThreeMFReader.py')
-rwxr-xr-x | plugins/3MFReader/ThreeMFReader.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py index 2e3f5630c1..68d0aee81b 100755 --- a/plugins/3MFReader/ThreeMFReader.py +++ b/plugins/3MFReader/ThreeMFReader.py @@ -201,6 +201,10 @@ class ThreeMFReader(MeshReader): parser = Savitar.ThreeMFParser() scene_3mf = parser.parse(archive.open("3D/3dmodel.model").read()) self._unit = scene_3mf.getUnit() + + for key, value in scene_3mf.getMetadata().items(): + CuraApplication.getInstance().getController().getScene().setMetaDataEntry(key, value) + for node in scene_3mf.getSceneNodes(): um_node = self._convertSavitarNodeToUMNode(node, file_name) if um_node is None: |