diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-11-08 12:00:00 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-11-08 12:00:00 +0300 |
commit | efc9719ff08708af98d9275b77f198bf6a9a2fb0 (patch) | |
tree | 667bf6c540c86ad0726535a4924444d9409f1404 /plugins/3MFReader/__init__.py | |
parent | 5b89f5e8ee427aa1d956a618c7904545cc34a154 (diff) |
Added stub workspace reader
CURA-1263
Diffstat (limited to 'plugins/3MFReader/__init__.py')
-rw-r--r-- | plugins/3MFReader/__init__.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/3MFReader/__init__.py b/plugins/3MFReader/__init__.py index 42b1794160..a2af30211d 100644 --- a/plugins/3MFReader/__init__.py +++ b/plugins/3MFReader/__init__.py @@ -2,10 +2,11 @@ # Cura is released under the terms of the AGPLv3 or higher. from . import ThreeMFReader - +from . import ThreeMFWorkspaceReader from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") + def getMetaData(): return { "plugin": { @@ -20,8 +21,17 @@ def getMetaData(): "extension": "3mf", "description": catalog.i18nc("@item:inlistbox", "3MF File") } + ], + "workspace_reader": + [ + { + "extension": "3mf", + "description": catalog.i18nc("@item:inlistbox", "3MF File") + } ] } + def register(app): - return { "mesh_reader": ThreeMFReader.ThreeMFReader() } + return {"mesh_reader": ThreeMFReader.ThreeMFReader(), + "workspace_reader": ThreeMFWorkspaceReader.ThreeMFWorkspaceReader()} |